Commit Graph

166 Commits

Author SHA1 Message Date
Tom Christie
c28b719333 Refactored throttling 2012-09-04 21:58:35 +01:00
Tom Christie
8457c87196 Bits of cleanup 2012-09-04 12:02:05 +01:00
Tom Christie
a092a72844 View -> APIView 2012-09-03 16:54:17 +01:00
Tom Christie
7abef9ac3b Parsers may return raw data, or a DataAndFiles object 2012-09-03 14:28:40 +01:00
Tom Christie
a25b4be441 Support generators 2012-09-03 13:30:20 +01:00
Tom Christie
ecd3733c5e Added serializers and fields 2012-08-28 15:46:38 +01:00
Tom Christie
73cc77553e Drop ImmediateResponse 2012-08-26 23:06:52 +01:00
Tom Christie
aed26b218e Drop out resources & mixins 2012-08-24 22:11:00 +01:00
Tom Christie
87b363f7bc Remove PermissionsMixin 2012-08-24 20:57:10 +01:00
Tom Christie
4e4584a01a Remove RequestMixinx / ReponseMixin 2012-08-24 20:50:24 +01:00
Tom Christie
4739e1c012 Merge work from sebpiq 2012-04-11 17:38:47 +01:00
Tom Christie
44df8345f3 Merge with master 2012-04-11 15:28:57 +01:00
Tom Christie
44b5d61203 Fix broken tests 2012-02-25 19:02:26 +00:00
Tom Christie
1cde31c86d Massive merge 2012-02-25 18:45:17 +00:00
Shawn Lewis
98c16e6da8 Test for issue #178.
This failing test shows that the serializer implementation breaks when a
related serializer is passed in via include rather than via fields.
2012-02-23 16:28:01 -08:00
Sébastien Piquemal
afd490238a authentication refactor : request.user + tests pass 2012-02-23 22:47:45 +02:00
Tom Christie
e15494a172 Remove InstanceMixin auto-url magicks. 2012-02-23 09:21:01 +00:00
Tom Christie
2b59df004a reverse takes request as a kwarg for compatibility with django's reverse 2012-02-23 08:58:10 +00:00
Sébastien Piquemal
9da1ae81dc merged + fixed broken test 2012-02-23 09:01:33 +02:00
Sébastien Piquemal
242327d339 hack to fix ImmediateResponse rendering 2012-02-23 08:54:25 +02:00
Tom Christie
66eabe8bd1 Remove staticviews. Use standard login/logout 2012-02-21 22:50:41 +00:00
Tom Christie
5fd4c639d7 Merge master into develop 2012-02-21 20:57:36 +00:00
Tom Christie
ca9465f11e reverse gets it's own module 2012-02-21 20:47:55 +00:00
Tom Christie
af9e4f69d7 Merging master into develop 2012-02-21 20:12:14 +00:00
Daniel Izquierdo
a29ca6c2d0 Pass the request object to `reverse' in the reverse tests 2012-02-21 22:44:02 +09:00
Daniel Izquierdo
af4851f7a8 Move the new `reverse' function from urlresolvers to utils 2012-02-21 22:41:51 +09:00
Daniel Izquierdo
12e34814e9 Test the custom reverse() function instead of the one provided by Django 2012-02-21 22:41:51 +09:00
Tom Christie
21fcd3a906 Some cleanup 2012-02-20 09:36:03 +00:00
Tom Christie
fbf76c87af Merge git://github.com/sebpiq/django-rest-framework into develop 2012-02-17 09:19:13 +00:00
Sébastien Piquemal
c04cb5145c merged with trunk 2012-02-14 10:10:04 +02:00
Paul Oswald
9c8ca51c78 Delete robots.txt, favicon.ico views; Move style to a new static namespace 2012-02-14 11:25:59 +09:00
Sébastien Piquemal
b33579a7a1 attempt at fixing the examples 2012-02-10 11:05:20 +02:00
Sébastien Piquemal
21292d31e7 cleaned Request/Response/mixins to have similar interface 2012-02-07 15:38:54 +02:00
Sébastien Piquemal
ca96b4523b cleaned a bit Response/ResponseMixin code, added some documentation + renamed ErrorResponse to ImmediateResponse 2012-02-07 13:15:30 +02:00
Jamie Matthews
76a7d35813 Ensure duplicate "page" parameters are not created
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-07 11:08:55 +00:00
Sébastien Piquemal
5bb6301b7f Response as a subclass of HttpResponse - first draft, not quite there yet. 2012-02-02 18:19:44 +02:00
Sébastien Piquemal
5f59d90645 merged with trunk's master 2012-02-02 08:39:15 +02:00
Tom Christie
c7a8056034 Use named args in mixin tests. 2012-01-29 13:20:03 +00:00
Tom Christie
c1fe5da85f Refactoring get_name/get_description 2012-01-25 20:39:01 +00:00
Tom Christie
f5e54c7c32 Merge remote-tracking branch 'btimby/description' 2012-01-25 19:53:04 +00:00
Tom Christie
df07616c6c Merge pull request #144 from btimby/master
Fix test_with_content_type_args to pass regardless of JSON library idiosyncracies
2012-01-24 12:25:32 -08:00
Ben Timby
d3ec860dd1 Modified test case to pass regardless of JSON library 2012-01-24 14:36:34 -05:00
Ben Timby
54caf6d7ba Modified test case to pass regardless of JSON library 2012-01-24 14:34:29 -05:00
Sébastien Piquemal
8b72b7bf92 corrected request example 2012-01-24 19:16:41 +02:00
Ben Timby
7fa3a214fb Refactored get_name()/get_description() 2012-01-23 13:32:37 -05:00
Ben Timby
2d8739115c Fix for testcase test_with_content_type_args 2012-01-23 13:18:38 -05:00
Tom Christie
8bb427537c Docstring tidy up 2012-01-23 09:06:30 +00:00
Tom Christie
e362344fbd Fix tests to work on all supported configurations. 2012-01-22 20:19:34 +00:00
Sébastien Piquemal
ab0b72a7c1 .DATA, .FILES, overloaded HTTP method, content type and content available directly on the request - see #128 2012-01-22 21:28:34 +02:00
Tom Christie
add6c88a26 Merge https://github.com/mjumbewu/django-rest-framework 2012-01-21 17:58:06 +00:00