mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 16:24:18 +03:00
Fix minor code error in Generic Views documentation - missing if
statement.
This commit is contained in:
parent
0176a5391b
commit
5c8356d51d
|
@ -34,7 +34,7 @@ For more complex cases you might also want to override various methods on the vi
|
|||
"""
|
||||
Use smaller pagination for HTML representations.
|
||||
"""
|
||||
self.request.accepted_renderer.format == 'html':
|
||||
if self.request.accepted_renderer.format == 'html':
|
||||
return 20
|
||||
return 100
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user