Skip to content

Commit

Permalink
Fixed type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Jan 28, 2024
1 parent a857531 commit bfcc3d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions radis/core/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def get(

def get_context_data(self: PageSizeSelectMixinProtocol, **kwargs):
context = super().get_context_data(**kwargs)
pages_sizes = [50, 100, 250, 500] if not self.page_sizes else self.page_sizes
context["page_size_select"] = PageSizeSelectForm(self.request.GET, pages_sizes)

if self.page_sizes is None:
self.page_sizes = [50, 100, 250, 500]
context["page_size_select"] = PageSizeSelectForm(self.request.GET, self.page_sizes)

return context

0 comments on commit bfcc3d2

Please sign in to comment.