aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/permissions.py
diff options
context:
space:
mode:
authorRoss McFarland2013-10-19 20:43:23 -0700
committerRoss McFarland2013-10-19 21:11:27 -0700
commit63e6a3b4925bf54e80ae63502a0353136e846b31 (patch)
treed3f95c8d4f1a8926c749a81e2ff07451778354bb /rest_framework/permissions.py
parentc3aeb16557f2cbb1c1218b5af7bab646e4958234 (diff)
downloaddjango-rest-framework-63e6a3b4925bf54e80ae63502a0353136e846b31.tar.bz2
paginator should validate page and provide default
- use the standard paginator.validate_number method rather strict_postive_int. - support optional paginator method, default_page_number, to get the default page number rather than hard-coding it to 1 - this allows supporting non-integer based pagination which can be an important performance tweak on extermely large datasets or high request loads - relatively thorough unit tests of the changes
Diffstat (limited to 'rest_framework/permissions.py')
0 files changed, 0 insertions, 0 deletions