summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
986c8f6)
(cherry picked from commit
9eba29b)
integer representing the current page.
"""
try:
integer representing the current page.
"""
try:
- return int(self.REQUEST['page%s' % suffix])
+ # REQUEST is deprecated as of Django 1.7.
+ key = 'page%s' % suffix
+ value = self.POST.get(key)
+ if value is None:
+ value = self.GET.get(key)
+ return int(value)
except (KeyError, ValueError, TypeError):
return 1
except (KeyError, ValueError, TypeError):
return 1