Skip to content

Commit

Permalink
1688: reverted changes to generic_views
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandravaphilips committed Jan 25, 2024
1 parent 6145f9e commit 2ba19bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions peachjam/views/generic_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ class BaseDocumentDetailView(DetailView):
slug_field = "expression_frbr_uri"
slug_url_kwarg = "frbr_uri"
context_object_name = "document"
queryset = CoreDocument.objects.exclude(published=False)

def get_object(self, *args, **kwargs):
return self.queryset.get(
return self.model.objects.get(
expression_frbr_uri=add_slash(self.kwargs.get("frbr_uri"))
)

Expand Down

0 comments on commit 2ba19bf

Please sign in to comment.