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
Tom Christie
d1ed9884d8
Merge pull request #46 from jakul/m2m_create_through
...
Update to existing pull request "Support for creating objects with m2m relationsM2m"
2011-07-11 12:33:52 -07:00
Tom Christie
5433cb3e27
Merge pull request #44 from fzunino/m2m_create
...
Support for creating objects with m2m relations
2011-07-11 12:33:40 -07:00
Craig Blaszczyk
91b9d0b2a3
remove hardcoded model._meta.many_to_many[0]; update mixin tests to test with 0, 1, or multiple groups
2011-07-08 18:14:52 +01:00
Craig Blaszczyk
344db0d733
update mixin to work with m2m data using a through field, by storing the name of the field and manually creating an object in the related table
2011-07-08 18:04:22 +01:00
Sébastien Piquemal
e53c3cd417
now cleans data from parameters used for overloads
2011-07-06 14:05:57 +03:00
Fernando Zunino
a634d10cbf
Support for creating objects with m2m relations
2011-07-05 02:25:39 -03:00
Tom Christie
ca4b7560cb
merge
2011-07-01 11:31:04 +01:00
Tom Christie
16d8c3255d
Fix #36
2011-07-01 03:30:28 -07:00
Fernando Zunino
60cd5363ab
FIX: ModelViews can have Resources whose models have unique fields.
...
ReadModelMixin and UpdateModelMixin store model instance as a property. This allows ModelResource to bind the ModelForm using the model instance making the form validate the input data against the model instance and not a brand new instance. When the latter happened and the model used unique fields, the form validation failed whenever a PUT was maintaining the previuos value of the unique field.
2011-07-01 03:32:04 -03:00