Tom Christie
37fe0bf0de
Remove unneccessary tests from #789 , and bit of cleanup.
2013-04-17 09:03:24 +01:00
Johannes Spielmann
750451f5b4
adding test case for generic view with overriden get_object()
2013-04-14 18:30:44 +02:00
Tom Christie
acc8c1faa4
force_insert, force_update arguments. Closes #484 .
...
Confirmed by `assertNumQueries(…)` in tests.
2013-03-13 20:40:39 +00:00
Marc Tamlyn
332c99748f
Add some simple numQueries tests.
2013-03-08 17:36:43 +00:00
Marc Tamlyn
a91dca178d
Correcy typo.
2013-03-08 17:01:43 +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
a1dbd93f54
assertEquals
-> assertEqual
2013-02-27 21:15:00 +00:00
Omer Katz
cc13e95d5e
Fixed misspelled remark in comments.
2013-02-25 16:44:44 +03:00
Omer Katz
8d806d0cef
Fixed misspelled remark in comments.
2013-02-25 16:44:19 +03:00
Tom Christie
bba918fb2a
Fix and test case for #653
...
Closes #653
2013-02-22 22:13:06 +00:00
Tom Christie
bc87bf13b4
Tests and fix for #666 .
...
Closes #666 .
2013-02-22 22:02:42 +00:00
Tom Christie
5813a09512
Use new many=True relations style.
2013-02-07 09:14:58 +00:00
Tom Christie
d9c7b1c585
Merge branch 'p3k' of https://github.com/linovia/django-rest-framework into working
...
Conflicts:
rest_framework/authentication.py
rest_framework/relations.py
rest_framework/serializers.py
rest_framework/settings.py
rest_framework/tests/authentication.py
rest_framework/tests/genericrelations.py
rest_framework/tests/generics.py
rest_framework/tests/relations_hyperlink.py
rest_framework/tests/relations_nested.py
rest_framework/tests/relations_pk.py
rest_framework/tests/serializer.py
2013-02-01 11:58:55 +00:00
Juan Riaza
a061e3d9e2
deprecate simplejson
2013-01-05 13:40:02 +01:00
Xavier Ordoquy
60250f22c8
Move the various compat things to the compat module.
2013-01-03 11:41:07 +01:00
Xavier Ordoquy
737349d238
Merge remote-tracking branch 'reference/py3k' into p3k
2013-01-02 16:09:21 +01:00
Andrew Hankinson
c6f212238c
Merge branch 'master' of git://github.com/tomchristie/django-rest-framework into patch-support
2012-12-30 14:03:08 -04:00
Andrew Hankinson
df1880185c
Renaming DRFRequestFactory to RequestFactory
...
Updated tests to reflect the new name.
2012-12-30 13:58:08 -04:00
Andrew Hankinson
e61eab43f4
Adjust PATCH test cases to use the new DRFRequestFactory
2012-12-20 00:28:01 -05:00
Tom Christie
6693d2d277
Fix for pks returning as strings when set in pre_save. Fixes #482 . Thanks to @n8agrin for the bug report.
2012-12-18 18:21:58 +00:00
Tom Christie
aa72f8d63d
Fix bug with M2M in browseable API
2012-12-17 21:59:51 +00:00
Andrew Hankinson
18338a37d3
Adding PATCH support to Django REST Framework
2012-12-16 14:49:18 -05:00
Xavier Ordoquy
17000129e3
Every (base) test should now pass with python3.
2012-11-24 23:19:03 +01:00
Xavier Ordoquy
b3698acb6c
First passing test under p3k \o/
2012-11-22 00:20:49 +01:00
Tom Christie
027c9079f6
PUT as create should return 201. Fixes #340 .
2012-10-31 20:11:38 +00:00
Tom Christie
b6c90c0d68
Fix slug based put as create test
2012-10-29 17:20:06 +00:00
Tom Christie
343da8e3cf
PUT as create should return 200
2012-10-29 16:13:08 +00:00
Marko Tibold
1a16289ede
Get the correct instance
2012-10-28 20:56:48 +01:00
Marko Tibold
5bb6680376
test_put_as_create_on_id_based_url should check for a created-response.
2012-10-28 20:45:42 +01:00
Marko Tibold
bc99142c7d
Added wo tests. One for PUTing on a non-existing id-based url. And another for PUTing on a non-existing slug-based url.
...
Fix doctoring for 'test_put_cannot_set_id'.
2012-10-28 19:35:50 +01:00
Tom Christie
52ba2e3333
Fix #285
2012-10-08 12:52:56 +01:00
Tom Christie
2533c2452b
Support PUT for create
2012-10-05 16:24:52 +01:00
Tom Christie
d89d6887d2
HyperlinkedModelSerializer with working HyperlinkedIdentityField, but no hyperlinked relations
2012-10-04 11:26:41 +01:00
Tom Christie
c30e0795be
Rename generic views
2012-10-03 09:26:15 +01:00
Tom Christie
d1b99f350a
Added model form field -> serializer form field mapping
2012-10-02 16:16:49 +01:00
Tom Christie
f010a9553e
Add test to ensure that pk is readonly in PUT requests
2012-10-02 15:39:41 +01:00
Tom Christie
ab173fd8f9
Fix bug where pk could be set in post data
2012-10-02 15:37:13 +01:00
Tom Christie
b16fb57771
Expand pagination support, add docs
2012-10-01 15:49:19 +01:00
Tom Christie
224bc027cd
Add more tests for generic views
2012-09-28 16:41:35 +01:00
Tom Christie
0853316545
Add more tests for generic views
2012-09-28 16:23:46 +01:00
Tom Christie
9f71f8e618
Fix broken bits of generic views
2012-09-28 15:54:00 +01:00
Tom Christie
e003cc91b6
Get test-only models properly working
2012-09-28 14:28:50 +01:00