aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
AgeCommit message (Collapse)Author
2014-11-03PUT as create docs, and move mixin out to external gistTom Christie
2014-10-12Rename `preform_update` to `perform_update`Andy Freeland
2014-10-08Tweak pre/post save hooks. Return instance in .update().Tom Christie
2014-10-07Reintroduce save hooksTom Christie
2014-10-03Serializer.save() takes keyword arguments, not 'extras' argumentTom Christie
2014-10-03More spelling tweaksCraig de Stigter
2014-09-26request.data attributeTom Christie
2014-09-05Workin onTom Christie
2014-09-02Getting tests passingTom Christie
2014-09-02Add relations and get tests runningTom Christie
2014-08-29First passTom Christie
2014-08-29Remove `pk_url_field`, `slug_url_field`, `slug_field`.Tom Christie
Closes #1773.
2014-08-29Remove `allow_empty`Tom Christie
2014-04-13Merge remote-tracking branch 'origin/master' into 2.4.0Xavier Ordoquy
Conflicts: .travis.yml docs/api-guide/fields.md docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/authentication.py rest_framework/serializers.py rest_framework/templatetags/rest_framework.py rest_framework/tests/test_authentication.py rest_framework/tests/test_filters.py rest_framework/tests/test_hyperlinkedserializers.py rest_framework/tests/test_serializer.py rest_framework/tests/test_testing.py rest_framework/utils/encoders.py tox.ini
2014-02-18Tweak comment wrapping.Tom Christie
2014-02-18Remove unnecessary elseIan Foote
2014-02-18Refactor UpdateModelMixin.updateIan Foote
Reduce nesting, return early in error cases.
2014-01-14Use api_settings.URL_FIELD_NAMETom Christie
2013-12-13Merge branch 'master' into 2.4.0Tom Christie
Conflicts: .travis.yml docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/compat.py
2013-12-03Adds pre_delete and post_delete hooks onPablo Recio
2013-11-19Added handling of validation errors in PUT-as-create.Krzysztof Jurewicz
Fixes #1035.
2013-10-21Use lookup_url_kwarg in presave if requiredTom Christie
2013-08-30Merge masterTom Christie
2013-08-23Extra docs on PATCH with no object.Tom Christie
2013-08-13PATCH requests should not be able to create objects.Krzysztof Jurewicz
2013-06-27pending deprecations -> deprecatedTom Christie
2013-05-22Tweak method ordering for better consistencyTom Christie
2013-05-17Minor mixin refactoringTom Christie
2013-05-17PendingDeprecation warning to allow_emptyTom Christie
2013-05-02introduce lookup_field and add pendingdeprecationwarningsTom Christie
2013-04-25Simplify paginate_queryset methodTom Christie
2013-04-09Cleaning up around bits of API that will be pending deprecationTom Christie
2013-04-09Removed SingleObjectMixin and MultipleObjectMixinTom Christie
2013-04-04TweaksTom Christie
2013-03-13force_insert, force_update arguments. Closes #484.Tom Christie
Confirmed by `assertNumQueries(…)` in tests.
2013-03-08GenericAPIView now applies filter_backend for list and retrieve api viewstoran billups
Before this commit only the MultipleObjectAPIView would apply a filter_backend, leaving the SingleObjectAPIView to return objects you might otherwise expect to have been filtered out. It's worth mentioning that when a SingleObjectAPIView makes a request for an object that should be excluded, a 404 is the expected result.
2013-02-27Fix out of date docstrings. Closes #689.Tom Christie
2013-02-22Tests and fix for #666.Tom Christie
Closes #666.
2013-02-12Tidy up internal view permission checking logic.Tom Christie
Also document correctly - these methods are now public and will fall under the deprecation policy from now on.
2013-02-10Enforce PUT-as-create permissionsTom Christie
2013-02-06Added a `post_save` hook. Closes #558.Tom Christie
2013-02-06Set many explicitly from mixins. Refs #564.Tom Christie
2013-02-01Merge branch 'p3k' of https://github.com/linovia/django-rest-framework into ↵Tom Christie
working Conflicts: rest_framework/authentication.py rest_framework/relations.py rest_framework/serializers.py rest_framework/settings.py rest_framework/tests/authentication.py rest_framework/tests/genericrelations.py rest_framework/tests/generics.py rest_framework/tests/relations_hyperlink.py rest_framework/tests/relations_nested.py rest_framework/tests/relations_pk.py rest_framework/tests/serializer.py
2013-01-02Merge remote-tracking branch 'reference/py3k' into p3kXavier Ordoquy
2013-01-02Keep API backwards compatible.Tom Christie
2012-12-30Merge branch 'master' of git://github.com/tomchristie/django-rest-framework ↵Andrew Hankinson
into patch-support
2012-12-19Fix #521. (Browseable API exception on delete)Tom Christie
2012-12-18Fix for pks returning as strings when set in pre_save. Fixes #482. Thanks ↵Tom Christie
to @n8agrin for the bug report.
2012-12-16Adding PATCH support to Django REST FrameworkAndrew Hankinson
2012-11-22First passing test under p3k \o/Xavier Ordoquy