Skip to content

Commit

Permalink
switch to using filterset in context
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas committed Jul 2, 2024
1 parent 79a5e87 commit 0b38778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/neapolitan/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def list(self, request, *args, **kwargs):
is_paginated=False,
paginator=None,
filter=self.filterset,
filterset=self.filterset,
)
else:
# Paginated response
Expand All @@ -172,6 +173,7 @@ def list(self, request, *args, **kwargs):
is_paginated=page.has_other_pages(),
paginator=page.paginator,
filter=self.filterset,
filterset=self.filterset,
)

return self.render_to_response(context)
Expand Down

0 comments on commit 0b38778

Please sign in to comment.