Tom Christie
21cd638659
Merge master
2013-09-25 09:44:26 +01:00
Edmond Wong
6e7e4fc01c
Added test for OPTIONS before object creation from a PUT
2013-09-03 12:30:18 -07:00
Edmond Wong
3063a50fc2
Allow OPTIONS to retrieve PUT field metadata on empty objects
...
This allows OPTIONS to return the PUT endpoint's object serializer metadata when the object hasn't been created yet.
2013-08-30 18:03:44 -07:00
Tom Christie
9a5b2eefa9
Merge master
2013-08-30 09:28:33 +01:00
Tom Christie
4c53fb883f
Tweak MAX_PAGINATE_BY behavior in edge case.
...
Always respect `paginate_by` settings if client does not specify page
size. (Even if the developer has misconfigured, so that `paginate_by >
max`.)
2013-08-28 12:52:38 +01:00
Alexander Akhmetov
7fb3f078f0
fix for python3
2013-08-27 17:42:10 +04:00
Alexander Akhmetov
316de3a8a3
Added max_paginate_by parameter
2013-08-26 20:14:17 +04:00
Tom Christie
16ffdedd14
Merge master
2013-08-21 21:31:59 +01:00
Tom Christie
2bcad32dcb
If page size query param <= 0, just use default page size.
...
Closes #1028 .
2013-08-21 21:22:12 +01:00
Tom Christie
815ef50735
If page size query param <= 0, just use default page size.
...
Closes #1028
2013-08-21 21:18:46 +01:00
Tom Christie
379ad8a824
pending deprecations -> deprecated
2013-06-27 20:36:14 +01:00
inglesp
b1847412b5
Typo
2013-06-12 20:00:33 +02:00
Tom Christie
f8a0d31d71
Remove ConfigurationError in favor of Django's ImproperlyConfigured
2013-06-05 13:45:28 +01:00
Tom Christie
138f0cacdb
Raise 404 on incorrect lookup type in URL, not 500. Closes #890 .
2013-05-28 11:57:11 +01:00
Tom Christie
fcaee6e580
Clean up OPTIONS implementation
2013-05-24 23:44:23 +01:00
Tom Christie
3c2bb06660
Support for multiple filter classes
2013-05-07 13:00:44 +01:00
Tom Christie
d71a5533f9
allow_empty -> pending deprecation in preference of overridden get_queryset.
2013-05-07 12:25:41 +01:00
Tom Christie
21ae3a6691
Drop out attribute
2013-04-30 08:24:33 +01:00
Tom Christie
0c1ab584d3
Tweaks for preferring .queryset over .model
2013-04-29 14:08:38 +01:00
Tom Christie
53f9d4a380
fields shortcut on views
2013-04-29 13:20:15 +01:00
Tom Christie
dc7b1d6430
2.2's PendingDeprecationWarnings now become DeprecationWarnings. 2.3's PendingDeprecationWarnings added.
2013-04-29 12:45:00 +01:00
Tom Christie
5d01ae661f
Simplify paginate_queryset method
2013-04-25 17:40:17 +01:00
Tom Christie
95abe6e844
Cleanup docstrings
2013-04-25 12:47:34 +01:00
Tom Christie
b94da2468c
Various clean up and lots of docs
2013-04-24 22:40:24 +01:00
Tom Christie
835d3f89d3
Merge remove-django-generics
2013-04-23 11:59:13 +01:00
Tom Christie
5a5a602f8a
Allow overriding get_object to work correctly. Fixes #784
2013-04-13 20:07:36 +01:00
Tom Christie
e0020c5b03
Simplify get_object
2013-04-11 15:48:18 +01:00
Tom Christie
07af437361
Cleaning up around bits of API that will be pending deprecation
2013-04-09 19:47:16 +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
1de6cff11b
Cleaning up get_object and get_queryset
2013-04-09 19:06:49 +01:00
Tom Christie
dc45bc7bfa
Add lookup_kwarg
2013-04-09 19:01:01 +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
922ee61d86
Remove erronous pre_save
2013-03-18 21:05:13 +00:00
Tom Christie
74fb366c59
Merge branch 'master' into resources-routers
2013-03-18 21:03:05 +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
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
09b01887f2
New style object-level permission checks
2013-02-12 08:58:28 +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
b052c92ac3
Cleanup imports
...
Mostly adding `from __future__ import unicode_literals` everywhere.
2013-02-04 20:55:35 +00:00
Tom Christie
71e55cc4f6
Merge with latest master
2013-01-15 17:53:24 +00:00
Tom Christie
6da9cd5429
Add .patch()
method for RetrieveUpdateAPIView
2013-01-02 17:43:43 +00:00
Tom Christie
ef73160599
Added RetrieveUpdateAPIView
2013-01-02 13:46:19 +00:00
Tom Christie
b807f3d52a
Keep API backwards compatible.
2013-01-02 13:39:24 +00:00
Andrew Hankinson
b9e48e8413
Removing Partial Update classes
...
PATCH methods merged into RetrieveUpdateDestroy class
2012-12-30 13:56:59 -04:00
Andrew Hankinson
18338a37d3
Adding PATCH support to Django REST Framework
2012-12-16 14:49:18 -05:00
Stephan Groß
76c840f1bb
added missing line
2012-12-13 20:41:40 +01:00
Stephan Groß
e198a2b376
added RetrieveUpdateAPIView
2012-12-13 16:57:17 +01:00
Tom Christie
acbe991209
Tidying
2012-11-16 23:22:15 +00:00