aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/mixins.py
AgeCommit message (Collapse)Author
2012-09-20Remove old 'djangorestframework directoriesTom Christie
2012-08-24Drop out resources & mixinsTom Christie
2012-02-23hack to fix ImmediateResponse renderingSébastien Piquemal
2012-02-14merged with trunkSébastien Piquemal
2012-02-10attempt at fixing the examplesSébastien Piquemal
2012-02-07cleaned a bit Response/ResponseMixin code, added some documentation + ↵Sébastien Piquemal
renamed ErrorResponse to ImmediateResponse
2012-02-07Ensure duplicate "page" parameters are not createdJamie Matthews
Previously, URLObject.add_query_param was used to generate next/previous page links in PaginatorMixin. This resulted in (for example) page 2's "next" link having the params: ?page=2&page=3 Instead, URLObject.set_query_param should be used to replace the current value of the "page" parameter.
2012-02-02Response as a subclass of HttpResponse - first draft, not quite there yet.Sébastien Piquemal
2012-01-29Use named args in mixin tests.Tom Christie
2012-01-22Fix tests to work on all supported configurations.Tom Christie
2012-01-21Merge https://github.com/mjumbewu/django-rest-frameworkTom Christie
2012-01-21Drop short status codes.Tom Christie
2012-01-20Add a get_object method to the ModelMixin, and testsMjumbe Wawatu Poe
2012-01-05Preserve existing query params in PaginatorMixinJamie Matthews
Previously, generation of next/previous links would discard any existing query parameters. This commit introduces a dependency on URLObject, which is used to intelligently parse and modify URLs to ensure existing params are preserved. Addresses issues #107
2011-12-14Use 1.4's CSRFMiddleware, so that PUT and DELETE get CSRF validation if ↵Tom Christie
session authentication is being used
2011-12-09Add pagination. Thanks @devioustree!Tom Christie
2011-07-19Revert pagination stuffTom Christie
This reverts commit d1af04969854433b56ddd002fbb35a956700c4c2.
2011-07-19Added tests for paginationTom Drummond
2011-07-11typo in testTom Christie
2011-07-08remove hardcoded model._meta.many_to_many[0]; update mixin tests to test ↵Craig Blaszczyk
with 0, 1, or multiple groups
2011-07-08add unit tests which show m2m creation failing for through tableCraig Blaszczyk
2011-07-07Tests for CreateModelMixin (unit and integration test via ↵Fernando Zunino
ListOrCreateModelView).