mirror of
https://github.com/django/django.git
synced 2025-01-22 00:02:15 +00:00
Removed unused branch in Paginator.validate_number().
Unused since 96cf3656c48f6c42714a70b4546bc42f7b904185.
This commit is contained in:
parent
94e7f471c4
commit
9101adc8ba
@ -51,10 +51,7 @@ class Paginator:
|
||||
if number < 1:
|
||||
raise EmptyPage(_("That page number is less than 1"))
|
||||
if number > self.num_pages:
|
||||
if number == 1 and self.allow_empty_first_page:
|
||||
pass
|
||||
else:
|
||||
raise EmptyPage(_("That page contains no results"))
|
||||
raise EmptyPage(_("That page contains no results"))
|
||||
return number
|
||||
|
||||
def get_page(self, number):
|
||||
|
Loading…
x
Reference in New Issue
Block a user