Jens Alm
de4604be0a
Support for request-based queryset limits on ListModelMixin
...
ListModelMixin uses the get_queryset from the MultipleObjectMixin. This
method can be overridden on the View class to return a different
queryset, but get_queryset doesn't accept a request parameter in. This
commit adds the limit_list hook to override if you want to limit the
queryset based on request-information such as the logged in user.
2012-10-15 11:47:56 +02:00
Jens Alm
36cc56bc9d
Added tests for TextField
2012-10-15 10:06:50 +02:00
Jens Alm
241be38340
Added TextField to recognized fields
2012-10-15 09:14:01 +02:00
Tom Christie
41dd63b3b0
Merge branch 'restframework2' of https://github.com/tomchristie/django-rest-framework into restframework2
2012-10-14 22:43:41 +01:00
Tom Christie
551c86c43a
Documentation for parsers
2012-10-14 22:43:07 +01:00
Tom Christie
7a89d7a770
Work on docs
2012-10-14 20:46:38 +01:00
Tom Christie
27b8904ffe
Fix typo
2012-10-13 23:28:05 +02:00
Tom Christie
b3477b3b6c
Docs tweaks
2012-10-13 15:34:38 +01:00
Tom Christie
fe5db41949
Fix typo
2012-10-13 15:12:44 +01:00
Tom Christie
e4f43be47f
Merge pull request #293 from tomchristie/request-documentation
...
Improve documentation for Requests
2012-10-13 07:10:12 -07:00
Tom Christie
7608cf1193
Improve documentation for Requests
2012-10-13 15:07:43 +01:00
Tom Christie
ee38c03a15
Merge pull request #291 from tomchristie/drop-coverage
...
Drop coverage in travis tests
2012-10-13 05:40:55 -07:00
Tom Christie
e48a3a01d9
Merge pull request #292 from j4mie/patch-1
...
Fix tiny typo
2012-10-12 01:15:36 -07:00
Jamie Matthews
7367bd53a9
Fix tiny typo
2012-10-12 10:02:21 +02:00
Ben Konrath
c24997df3b
Change django-filter to version that supports Django 1.3.
2012-10-11 16:39:25 +02:00
Ben Konrath
1d054f9572
Use Decimal (properly) everywhere.
2012-10-11 14:19:29 +02:00
Tom Christie
db0a9acfd7
Add PYTHONPATH in travis config
2012-10-11 13:12:43 +01:00
Tom Christie
3c9fb04299
Don't bother to setup.py test, just test directly
2012-10-11 13:09:53 +01:00
Tom Christie
d15e31b28d
Drop coverage in travis tests
2012-10-11 13:05:01 +01:00
Ben Konrath
6f736a6823
Explicitly use Decimal for creating filter test data.
...
This fixes a Travis build failures on python 2.6:
https://travis-ci.org/#!/tomchristie/django-rest-framework/builds/2746628
2012-10-11 13:55:16 +02:00
Tom Christie
6300334aca
Sanitise JSON error messages
2012-10-11 13:53:12 +02:00
Tom Christie
9094f93d18
Sanitise JSON error messages
2012-10-11 11:21:50 +01:00
Ben Konrath
5454162b04
Define 'page' query field name in one place.
2012-10-11 12:01:07 +02:00
Ben Konrath
6fbd411254
Make query filters work with pagination.
2012-10-11 12:01:07 +02:00
Ben Konrath
e295f616ec
Fix small PEP8 problem.
2012-10-11 12:01:07 +02:00
Ben Konrath
692203f933
Check for 200 status when unknown filter requested.
...
This changes the test from the failing checking for status 400. See
discussion here:
https://github.com/tomchristie/django-rest-framework/pull/169#issuecomment-9240480
2012-10-11 12:01:07 +02: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
83f39b3dce
Don't fail when no data provided
2012-10-10 16:41:08 +01:00
Tom Christie
221ecd2182
Fix session auth
2012-10-10 16:36:25 +01:00
Tom Christie
d905d1cbd3
Fix yaml rendering
2012-10-10 16:34:00 +01:00
Tom Christie
5c7f3e23ee
Tidy up APISettings object to not rely on module state
2012-10-10 12:54:40 +01:00
Tom Christie
db6b5a990b
Fix key ordering in json. (sort if it's a sorted dictc representation, or not otherwise)
2012-10-10 12:32:23 +01:00
Tom Christie
648d2be29b
Make sure JSON output in Browseable API is nicely indented
2012-10-10 12:15:18 +01:00
Tom Christie
ccd2b0117d
Permissions and throttles no longer have a view attribute on self. Explicitly passed to .has_permissions(request, view, obj=None) / .allow_request(request, view)
2012-10-10 10:02:37 +01:00
Tom Christie
900c4b625b
api_key -> auth_token to avoid TastyPie conflict
2012-10-10 09:50:15 +01:00
Tom Christie
44281c3996
Remove 'tut 6 - resources' from the docs, since it doesn't exist yet
2012-10-10 09:36:18 +01:00
Tom Christie
a3ab66eca4
Add 'to_many' flag in get_related_field
2012-10-09 17:51:32 +01:00
Tom Christie
9bbc1cc403
Add flag in get_related_field
2012-10-09 17:49:04 +01:00
Tom Christie
b0c370dd2b
Fixed couple of incorrect imports in the docs
2012-10-09 17:36:03 +01:00
Tom Christie
52a2ff8f77
Docs tweaks
2012-10-09 16:44:49 +01:00
Tom Christie
97a7f27c82
Rename HTMLTemplateRenderer -> HTMLRenderer, DocuemntingHTMLRenderer -> BrowseableAPIRenderer
2012-10-09 15:58:48 +01:00
Tom Christie
ce21fa1dc6
Tweak static files with docs
2012-10-09 14:12:38 +01:00
Tom Christie
94401b43d2
Flesh out quickstart guide and make some style tweaks
2012-10-09 13:50:26 +01:00
Tom Christie
7c4d50f621
Fix browseable API form display error for authenticated permissions
2012-10-09 12:48:49 +01:00
Tom Christie
e9475d036f
Tweak settings in quickstart guide
2012-10-09 12:03:29 +01:00
Tom Christie
115e61be09
Added quickstart guide
2012-10-09 12:01:17 +01:00
Tom Christie
dc52ceaaa2
Remove Field handling relations/relationship managers - use RelatedField/ManyRelatedField instead
2012-10-09 10:25:01 +01:00
Tom Christie
5c17a60176
Tweak authtoken
2012-10-09 09:57:31 +01:00
Tom Christie
beea6487b2
Function based views get proper naming in browseable API
2012-10-09 09:57:08 +01:00
Tom Christie
65f592866c
Fix issue where required fields were not being properly validated. Also make model fields with a default value be not required
2012-10-08 17:53:18 +01:00