Marko Tibold
55f7dd9bce
error_data
-> errors
...
Prefill form for instance view.
2012-09-08 21:56:18 +02:00
Tom Christie
071e7d72cd
Fix method overloading
2012-09-07 10:57:04 +01:00
Tom Christie
01d6a0899e
Bits of cleanup
2012-09-07 09:36:52 +01:00
Tom Christie
da4fa9bded
Minor tweaks
2012-09-05 09:54:46 +01:00
Tom Christie
8457c87196
Bits of cleanup
2012-09-04 12:02:05 +01:00
Tom Christie
6e21915934
First pass at mixins & generic views
2012-09-03 17:49:22 +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
1cde31c86d
Massive merge
2012-02-25 18:45:17 +00:00
Sébastien Piquemal
afd490238a
authentication refactor : request.user + tests pass
2012-02-23 22:47:45 +02:00
Tom Christie
af9e4f69d7
Merging master into develop
2012-02-21 20:12:14 +00:00
Tom Christie
21fcd3a906
Some cleanup
2012-02-20 09:36:03 +00:00
Sébastien Piquemal
c04cb5145c
merged with trunk
2012-02-14 10:10:04 +02:00
Sébastien Piquemal
b33579a7a1
attempt at fixing the examples
2012-02-10 11:05:20 +02:00
Sébastien Piquemal
db0b01037a
made suggested fixes
2012-02-10 10:18:39 +02:00
Sébastien Piquemal
2cdff1b01e
modified examples, somethin' still broken, can't find what
2012-02-07 16:52:15 +02:00
Sébastien Piquemal
6963fd3623
some docs for Request/Response/mixins
2012-02-07 16:22:14 +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
Camille Harang
da8187d2c2
* -> **
2012-02-01 23:56:54 +01:00
Tom Christie
894f632598
Remove use of Q objects.
2012-02-01 20:48:32 +00:00
Tom Christie
c0674e36d4
Drop implicit 'pk' on last arg in urlconf. (Too magical).
2012-01-28 19:06:40 +00:00
Sébastien Piquemal
714a90d755
documentation for request module
2012-01-24 21:21:10 +02: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
d1ce9d3914
More consistent comment style.
2012-01-21 18:36:25 +00:00
Tom Christie
dea4a45ec7
pep8/pyflakes cleanup
2012-01-21 18:33:34 +00:00
Tom Christie
a851294d05
get_ordering/get_queryset refactoring
2012-01-21 18:24:10 +00:00
Mjumbe Wawatu Poe
417eacb2ed
Add a get_object method to the ModelMixin, and tests
2012-01-20 13:05:44 -05:00
Chris Pickett
338e77837c
Added get_queryset method to ListModelMixin.
...
This can be easily re-implemented in a view, to allow the user to take
such things as request.user into account when creating the queryset.
2012-01-19 12:56:09 -05:00
Ben Timby
0a5ca000ed
Docstring/whitespace fixes.
2012-01-18 22:59:30 -05:00
Tom Christie
c71b6fb090
Replace 'x.has_key(y)' with 'y in x'
2012-01-11 16:43:04 +00:00
Tom Christie
0cfe2acdef
Minor cleanup on ModelMixin
2012-01-11 14:07:33 +00:00
Tom Christie
dacc9c0ff7
Merge https://github.com/sebzur/django-rest-framework
2012-01-11 13:54:44 +00:00
Sebastian Żurek
86b1495cad
QueryMixin to ModelMixin rename.
2012-01-10 21:42:50 +01:00
Sebastian Żurek
10adf4c31a
QueryMixin class updates (comments + docs and the definition of get_instance_data method)
2012-01-08 23:10:21 +01:00
Jamie Matthews
18535c7a38
Preserve existing query params in PaginatorMixin
...
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
2012-01-05 14:07:31 +00:00
Sebastian Żurek
abc7439f8d
QueryMixin created + related mixins updates
2012-01-03 09:55:12 +01:00
Tom Christie
5db422c9d3
Add pagination. Thanks @devioustree!
2011-12-09 13:37:53 +00:00
Tom Christie
325ee1e3a4
Merge pull request #62 from txels/master
...
HTTP OPTIONS support
2011-12-09 04:40:14 -08:00
Andrew McCloud
968c5e43f3
Removed rogue import for LimitBytes to fix issue #63
2011-07-31 13:21:06 -07:00
Carles Barrobés
3b413dbb40
Added support for OPTIONS method, including a few unit tests
2011-07-30 22:23:53 +02:00
Tom Christie
e956d5177e
Revert "Added pagination mixin. Need to write tests"
...
This reverts commit 1eb2dfcc3a
.
2011-07-19 20:39:20 +01:00
Tom Christie
20a95db60a
Revert "Now throws a 404 if page isn't an int"
...
This reverts commit ae059c78da
.
2011-07-19 20:39:15 +01:00
Tom Drummond
ae059c78da
Now throws a 404 if page isn't an int
2011-07-19 17:54:37 +01:00
Tom Drummond
1eb2dfcc3a
Added pagination mixin. Need to write tests
2011-07-19 17:06:56 +01:00