Tom Christie
379ad8a824
pending deprecations -> deprecated
2013-06-27 20:36:14 +01:00
Tom Christie
06b28f66ed
Tweak method ordering for better consistency
2013-05-22 09:07:12 +01:00
Tom Christie
34776da924
Minor mixin refactoring
2013-05-17 22:09:23 +01:00
Tom Christie
14ded26167
PendingDeprecation warning to allow_empty
2013-05-17 21:28:33 +01:00
Tom Christie
e4067bfb75
introduce lookup_field and add pendingdeprecationwarnings
2013-05-02 12:07:18 +01:00
Tom Christie
5d01ae661f
Simplify paginate_queryset method
2013-04-25 17:40:17 +01:00
Tom Christie
9bb1277e51
Cleaning up around bits of API that will be pending deprecation
2013-04-09 19:37:19 +01:00
Tom Christie
099163f81f
Removed SingleObjectMixin and MultipleObjectMixin
2013-04-09 18:45:15 +01:00
Tom Christie
371698331c
Tweaks
2013-04-04 22:24:30 +01:00
Tom Christie
acc8c1faa4
force_insert, force_update arguments. Closes #484 .
...
Confirmed by `assertNumQueries(…)` in tests.
2013-03-13 20:40:39 +00:00
toran billups
1a8f07def8
GenericAPIView now applies filter_backend for list and retrieve api views
...
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-03-08 10:08:53 -06:00
Tom Christie
02ee6e5bf0
Fix out of date docstrings. Closes #689 .
2013-02-27 22:15:28 +00:00
Tom Christie
bc87bf13b4
Tests and fix for #666 .
...
Closes #666 .
2013-02-22 22:02:42 +00:00
Tom Christie
f5a0275547
Tidy up internal view permission checking logic.
...
Also document correctly - these methods are now public and will fall
under the deprecation policy from now on.
2013-02-12 08:58:28 +00:00
Tom Christie
29136ef2c6
Enforce PUT-as-create permissions
2013-02-10 16:50:46 +00:00
Tom Christie
c18fb0d695
Added a post_save
hook. Closes #558 .
2013-02-06 21:28:03 +00:00
Tom Christie
55fd646631
Set many explicitly from mixins. Refs #564 .
2013-02-06 13:04:11 +00:00
Tom Christie
d9c7b1c585
Merge branch 'p3k' of https://github.com/linovia/django-rest-framework into 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-02-01 11:58:55 +00:00
Xavier Ordoquy
737349d238
Merge remote-tracking branch 'reference/py3k' into p3k
2013-01-02 16:09:21 +01:00
Tom Christie
b807f3d52a
Keep API backwards compatible.
2013-01-02 13:39:24 +00:00
Andrew Hankinson
c6f212238c
Merge branch 'master' of git://github.com/tomchristie/django-rest-framework into patch-support
2012-12-30 14:03:08 -04:00
Tom Christie
598ae3286a
Fix #521 . (Browseable API exception on delete)
2012-12-19 22:05:35 +00:00
Tom Christie
6693d2d277
Fix for pks returning as strings when set in pre_save. Fixes #482 . Thanks to @n8agrin for the bug report.
2012-12-18 18:21:58 +00:00
Andrew Hankinson
18338a37d3
Adding PATCH support to Django REST Framework
2012-12-16 14:49:18 -05:00
Xavier Ordoquy
b3698acb6c
First passing test under p3k \o/
2012-11-22 00:20:49 +01:00
Tom Christie
e40000c834
Merge pull request #408 from markotibold/file_and_image_fields
...
Added a FileField and an ImageField
2012-11-16 14:48:42 -08:00
Tom Christie
31f01bd631
Polishing to page size query parameters & more docs
2012-11-16 22:45:57 +00:00
Tom Christie
9973cf329a
Merge pull request #412 from minddust/custom_page_size_per_request
...
support for custom page size per request
2012-11-16 13:45:27 -08:00
Tom Christie
8d3581f4bd
Minor tweaks to internals of generics and mixins
2012-11-16 21:27:34 +00:00
Marko Tibold
403886b79b
Merge commit '3b258d69c92e9d9293f7c5d1690f0ca434e677e3' into file_and_image_fields
2012-11-15 22:48:22 +01:00
Stephan Groß
3ae203a018
updated script to just use page_size_kwarg
2012-11-15 12:06:43 +01:00
Stephan Groß
38e94bb8b4
added global and per resource on/off switch + updated docs
2012-11-15 11:15:05 +01:00
Stephan Groß
023b065ddc
added support for passing page_size per request
2012-11-14 16:02:50 +01:00
Ludwig Kraatz
d9c62c20a7
once more polished
2012-11-14 13:24:20 +01:00
Ludwig Kraatz
8b999c6bb5
polishing code
...
and adding myself to auhtors file
2012-11-14 11:46:16 +01:00
Marko Tibold
5443dd5f3c
Added a FileField and an ImageField (copied from django.forms.fields).
...
Adjusted generics, mixins and serializers to take a `files` arg where applicable.
2012-11-13 23:26:17 +01:00
Ludwig Kraatz
3a30a9b1cb
removed useless line after polishing code
...
added it in first commit but after third it became useless.
2012-11-13 20:30:18 +01:00
Ludwig Kraatz
b341dc70af
fixed ugly code
...
Location header is set just, if there is a Location field on the
serializer.
2012-11-13 19:15:42 +01:00
Ludwig Kraatz
573de11b23
changed buggy response + code ploishing
...
reponse didnt handle any headers at all. Accepts now a dict of headers
and sets those properly
2012-11-13 18:07:38 +01:00
Ludwig Kraatz
cc55a7b643
Returning a Location Header on Create
...
when creating a Resource with HyperlinkedIdentityField of any name
2012-11-13 18:00:41 +01:00
Tom Christie
9fd061a0b6
Merge branch 'restframework2-filter' of git://github.com/onepercentclub/django-rest-framework into filtering
2012-11-07 20:13:27 +00:00
Tom Christie
cedb3860f4
Use saner get_serializer signature
2012-11-06 17:05:15 +00:00
Ben Konrath
09f39bd23b
Merge branch 'master' into restframework2-filter
2012-11-06 03:22:25 +01:00
Ben Konrath
9c82f9717e
Merge branch 'master' into restframework2-filter
2012-11-01 14:06:56 +01:00
Pavel Savchenko
9a0cc7c720
since MultipleObjectBaseView was renamed MultipleObjectAPIView, it stands to reason to complete the renaming in docs and comments as well.
2012-11-01 15:06:11 +02:00
Tom Christie
027c9079f6
PUT as create should return 201. Fixes #340 .
2012-10-31 20:11:38 +00:00
Tom Christie
8c360770c1
Add pre_save hook in generic views
2012-10-25 12:15:31 +01:00
Ben Konrath
1e9ece0f93
First attempt at adding filter support.
...
The filter support uses django-filter to work its magic.
2012-10-11 12:01:07 +02:00
Tom Christie
f79ed6175d
Add RetrieveDestroyAPIView and remove Metadata mixin
2012-10-08 14:13:15 +01:00
Tom Christie
52ba2e3333
Fix #285
2012-10-08 12:52:56 +01:00