By doing this it is possible to override get_limit in order to return all records if the request has a predefined param. For example, if one wants that all records are retrieved if url has &limit=-1, get_limit could return self.count in this case. Otherwise, if self.count is set after self.limit then, to achive the same result, one has to override get_limit and paginate_queryset, or run get_limit twice.
| Name |
Last commit
|
Last update |
|---|---|---|
| .tx | Loading commit data... | |
| docs | Loading commit data... | |
| docs_theme | Loading commit data... | |
| requirements | Loading commit data... | |
| rest_framework | Loading commit data... | |
| tests | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .isort.cfg | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| ISSUE_TEMPLATE.md | Loading commit data... | |
| LICENSE.md | Loading commit data... | |
| MANIFEST.in | Loading commit data... | |
| PULL_REQUEST_TEMPLATE.md | Loading commit data... | |
| README.md | Loading commit data... | |
| mkdocs.yml | Loading commit data... | |
| requirements.txt | Loading commit data... | |
| runtests.py | Loading commit data... | |
| schema-support | Loading commit data... | |
| setup.cfg | Loading commit data... | |
| setup.py | Loading commit data... | |
| tox.ini | Loading commit data... |