Yuri Prezument
|
6f6aeadf5f
|
CharField in model should be null=True according Django docs
All tests should still pass
Ref #514
|
2012-12-17 16:48:03 +02:00 |
|
Andrew Hankinson
|
18338a37d3
|
Adding PATCH support to Django REST Framework
|
2012-12-16 14:49:18 -05:00 |
|
toran billups
|
008dafce17
|
ManyPrimaryKeyRelatedField now supports create for one-to-many rel
|
2012-12-15 20:55:36 -06:00 |
|
Joel Marcotte
|
01e06bcdf8
|
Added test for "positive_integer in choices tuple does not get parsed if not string".
Signed-off-by: Joel Marcotte <skaner@gmail.com>
|
2012-12-15 16:33:08 -05:00 |
|
Tom Christie
|
35f72cecb1
|
Fix model validation exclusions. Fixes #500. Fixes #506.
|
2012-12-15 20:40:41 +00:00 |
|
Tom Christie
|
3c31222a41
|
Merge branch 'master' of https://github.com/sunscrapers/django-rest-framework
|
2012-12-14 20:11:37 +00:00 |
|
Tom Christie
|
39b01d6802
|
Ensure context is passed to dynamically added fields. Fixes #476.
|
2012-12-14 19:59:29 +00:00 |
|
Simon Pantzare
|
9eaf8e4330
|
Test to verify that context is passed on
The paginator and its object serializer should share the same context.
|
2012-12-14 19:59:29 +00:00 |
|
Szymon Teżewski
|
5f08ec70e2
|
context to custom field in pagination
|
2012-12-13 12:07:56 +01:00 |
|
Tom Christie
|
497da7fc69
|
Clean up field initialization. Fixes #497
|
2012-12-12 20:45:06 +00:00 |
|
Tom Christie
|
4058223309
|
Fix broken nested fields
|
2012-12-11 21:07:25 +00:00 |
|
George Kappel
|
80f15c598a
|
Added depth test
|
2012-12-11 09:14:52 -06:00 |
|
Marko Tibold
|
d0935d1fbb
|
get_excluded_fieldnames() should respect Meta options' ability to be either a tuple or list. Fixes #490.
Refactored `if self.opt.fields` out of the for loop.
Updated and cleaned up the validation-tests.
|
2012-12-10 23:10:04 +01:00 |
|
Tom Christie
|
936fdfb78e
|
More tests for nullable FKs
|
2012-12-08 12:48:27 +00:00 |
|
Tom Christie
|
f72be7b8fa
|
Add test for m2m create
|
2012-12-08 12:29:35 +00:00 |
|
Tom Christie
|
c911d54ae3
|
Reverted #458
When incorrect parameters are supplied to the obtain auth token view
400 *is* the correct response.
|
2012-12-07 22:25:16 +00:00 |
|
Tom Christie
|
303bc7cf95
|
Support nullable FKs, with blank=True
|
2012-12-07 21:32:45 +00:00 |
|
Tom Christie
|
a5178e9a36
|
Merge pull request #451 from markotibold/#431
Call model's .full_clean() method, eg. to validate uniqueness
|
2012-12-07 12:34:56 -08:00 |
|
Tom Christie
|
6ffcd7ba36
|
Merge pull request #477 from roberts81/master
Fix for #460
|
2012-12-06 14:54:28 -08:00 |
|
Marko Tibold
|
c65f22e0e4
|
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework into #431
|
2012-12-06 23:47:47 +01:00 |
|
Tom Christie
|
e2175eb71b
|
Merge pull request #462 from asfaltboy/modelserializer_traverse_related
ModelSerializer traverse related
|
2012-12-06 14:35:57 -08:00 |
|
Ben Roberts
|
cb7d9ea5c9
|
cleaned up white space & docstring styling
|
2012-12-06 12:45:50 -07:00 |
|
Ben Roberts
|
7f28a78414
|
cleaned up last commit
|
2012-12-05 17:54:21 -07:00 |
|
Ben Roberts
|
705c7ad09d
|
added tests and fix for unpickleable metadata in SortedDictWithMetadata
|
2012-12-05 17:43:47 -07:00 |
|
Tom Christie
|
56bb4a5b03
|
Merge pull request #448 from mhsparks/master
Add setter to user property on request object
|
2012-12-02 06:59:27 -08:00 |
|
Pavel Savchenko
|
1c1bd3fc5d
|
fix test response
|
2012-11-30 01:37:21 +02:00 |
|
Pavel Savchenko
|
e311b763e1
|
add traverse_related feature + tests (fixes issue#461)
|
2012-11-30 01:34:46 +02:00 |
|
Pavel Savchenko
|
1b9d0eefba
|
fix forgotten 400 test
|
2012-11-29 09:35:22 +02:00 |
|
Pavel Savchenko
|
19f67bd578
|
also update test with response code 401
|
2012-11-28 23:05:33 +02:00 |
|
Marko Tibold
|
e7666014a8
|
Added an assertion to the tests that checks the '.errors' value for the unique-test
|
2012-11-26 23:39:49 +01:00 |
|
Mark Hughes
|
85a921c7ef
|
Added setter to user property
|
2012-11-24 17:18:32 +00:00 |
|
Marko Tibold
|
3f47f6cea9
|
Added a validate_unique test.
|
2012-11-22 23:50:42 +01:00 |
|
Marko Tibold
|
ca5b99486d
|
Added _post_clean() behaviour by adding a .perform_model_validation() method.
Fixed some tests that were failing due to extra strict validation.
|
2012-11-22 22:36:37 +01:00 |
|
Mark Aaron Shirley
|
0876bed963
|
Merge remote-tracking branch 'upstream/master' into partial-update
|
2012-11-21 09:37:22 -08:00 |
|
Stephan Groß
|
03100168ff
|
added missing line
|
2012-11-21 11:57:00 +01:00 |
|
Stephan Groß
|
6ba4df8a27
|
Merge remote-tracking branch 'upstream/master' into regex_field
Conflicts:
docs/topics/release-notes.md
|
2012-11-21 11:56:34 +01:00 |
|
Stephan Groß
|
ed713d0354
|
added tests
|
2012-11-21 11:07:08 +01:00 |
|
Tom Christie
|
8e8b23b6a9
|
Merge pull request #430 from j4mie/serializer-method-field
Serializer method field
|
2012-11-20 15:30:30 -08:00 |
|
Mark Aaron Shirley
|
c3644234cd
|
Add support for partial serializer updates
|
2012-11-20 11:01:21 -08:00 |
|
Jamie Matthews
|
3cc5349b2f
|
Clean up and clarify tests for related serializers
|
2012-11-20 09:49:54 +00:00 |
|
Jamie Matthews
|
68c397371c
|
Fix related serializers with source argument that resolves to a callable
|
2012-11-20 09:41:36 +00:00 |
|
Tom Christie
|
b9e5c9484a
|
Merge pull request #399 from robromano/master
Added login view for users of TokenAuthentication
|
2012-11-19 13:30:49 -08:00 |
|
Jamie Matthews
|
de5b071d67
|
Add SerializerMethodField
|
2012-11-19 17:22:17 +00:00 |
|
Robert Romano
|
f5f1ac49ec
|
Update robromano fork with upstream master
Conflicts:
docs/topics/credits.md
docs/topics/release-notes.md
|
2012-11-18 21:07:44 -08:00 |
|
Jacob Magnusson
|
d67ee708e5
|
Add support for min_length / max_length keywords
on basic ModelFields
|
2012-11-18 18:14:21 +01:00 |
|
Tom Christie
|
e801e21210
|
Merge pull request #422 from markotibold/max_length_for_modelserializers
Max length for modelserializers
|
2012-11-16 14:54:16 -08:00 |
|
Tom Christie
|
e40000c834
|
Merge pull request #408 from markotibold/file_and_image_fields
Added a FileField and an ImageField
|
2012-11-16 14:48:42 -08:00 |
|
Tom Christie
|
31f01bd631
|
Polishing to page size query parameters & more docs
|
2012-11-16 22:45:57 +00:00 |
|
Tom Christie
|
9973cf329a
|
Merge pull request #412 from minddust/custom_page_size_per_request
support for custom page size per request
|
2012-11-16 13:45:27 -08:00 |
|
Marko Tibold
|
1a436dd6d9
|
Added URLField and SlugField.
Fixed test_modelserializer_max_length_exceeded
|
2012-11-16 22:43:16 +01:00 |
|
Marko Tibold
|
4edc801d59
|
Reproduces #421
|
2012-11-16 21:42:04 +01:00 |
|
Marko Tibold
|
403886b79b
|
Merge commit '3b258d69c92e9d9293f7c5d1690f0ca434e677e3' into file_and_image_fields
|
2012-11-15 22:48:22 +01:00 |
|
Stephan Groß
|
a701a21587
|
added page_size_kwarg tests
|
2012-11-15 14:35:34 +01:00 |
|
Marko Tibold
|
69a01d7125
|
Added a test for the FileField.
|
2012-11-14 23:04:46 +01:00 |
|
Rob Romano
|
321ba156ca
|
Renamed AuthTokenView to ObtainAuthToken, added obtain_auth_token var, updated tests & docs. Left authtoken.urls in place as example.
|
2012-11-14 12:51:00 -08:00 |
|
Rob Romano
|
ce3ccb91dc
|
Updates to login view for TokenAuthentication from feedback from Tom
|
2012-11-14 12:46:14 -08:00 |
|
Rob Romano
|
bd92db3c67
|
Added authtoken login/logout urlpatterns and views
|
2012-11-14 12:46:14 -08:00 |
|
Ludwig Kraatz
|
8b999c6bb5
|
polishing code
and adding myself to auhtors file
|
2012-11-14 11:46:16 +01:00 |
|
Ludwig Kraatz
|
b341dc70af
|
fixed ugly code
Location header is set just, if there is a Location field on the
serializer.
|
2012-11-13 19:15:42 +01:00 |
|
Ludwig Kraatz
|
851dff1644
|
fixed a bug on testing throttling headers
after changing the headers storing of reponse
|
2012-11-13 18:39:07 +01:00 |
|
Ludwig Kraatz
|
cc55a7b643
|
Returning a Location Header on Create
when creating a Resource with HyperlinkedIdentityField of any name
|
2012-11-13 18:00:41 +01:00 |
|
Tom Christie
|
21468a1867
|
Fix broken depth argument
|
2012-11-13 11:47:32 +00:00 |
|
Marko Tibold
|
2a2ce406bc
|
Fixes #380
|
2012-11-10 12:23:19 +01:00 |
|
Marko Tibold
|
df689a7442
|
Reproduces #380
|
2012-11-10 12:00:20 +01:00 |
|
Tom Christie
|
e224061189
|
Support for read_only_fields on ModelSerializer classes
|
2012-11-09 17:01:20 +00:00 |
|
Tom Christie
|
c7df9694b5
|
Merge pull request #383 from tomchristie/filtering
Support for filtering backends
|
2012-11-09 05:07:34 -08:00 |
|
Tom Christie
|
bc6f2a1703
|
Make default FILTER_BACKEND = None
|
2012-11-08 21:46:53 +00:00 |
|
Tomi Pajunen
|
743224d000
|
Fixed creation of objects with reversed M2M relations
|
2012-11-08 16:31:16 +02:00 |
|
Tom Christie
|
47b534a13e
|
Make filtering optional, and pluggable.
|
2012-11-07 21:07:24 +00:00 |
|
Tom Christie
|
9fd061a0b6
|
Merge branch 'restframework2-filter' of git://github.com/onepercentclub/django-rest-framework into filtering
|
2012-11-07 20:13:27 +00:00 |
|
Tom Christie
|
b19c58ae17
|
Support for HTML error templates. Fixes #319.
|
2012-11-06 10:44:19 +00:00 |
|
Ben Konrath
|
09f39bd23b
|
Merge branch 'master' into restframework2-filter
|
2012-11-06 03:22:25 +01:00 |
|
Tom Christie
|
455a8cedcf
|
Tweaks
|
2012-11-05 17:03:22 +00:00 |
|
Tom Christie
|
9731b95fc3
|
Merge pull request #347 from minddust/master
support for passing custom slug options to HyperlinkedRelatedField
|
2012-11-05 08:36:59 -08:00 |
|
Stephan Groß
|
0a660a531a
|
fixed typo
|
2012-11-05 16:43:03 +01:00 |
|
Stephan Groß
|
03095f607a
|
added testcase for custom slug field in hyperlinkedrelatedfield
|
2012-11-05 16:37:37 +01:00 |
|
Tom Christie
|
33be4b43b9
|
queryset argument is now optional on writable model fields.
|
2012-11-05 12:51:04 +00:00 |
|
Tom Christie
|
b7b942c599
|
Swap position of instance and data keyword arguments.
|
2012-11-05 10:53:20 +00:00 |
|
Jacob Magnusson
|
7df7dadccd
|
Remove `request' from response instance while
testing caching
|
2012-11-04 13:42:29 +01:00 |
|
Jacob Magnusson
|
44f280c3ab
|
Add tests for caching of GET/HEAD requests using
Django's built in caching framework.
Currently fails as some attributes on the Response
object are not pickable
|
2012-11-04 12:47:46 +01:00 |
|
Jacob Magnusson
|
38af6107b5
|
Added test for ModelSerializer Meta fields
returning as expected
|
2012-11-03 00:32:08 +01:00 |
|
Jacob Magnusson
|
1b49615c00
|
Added test that makes sure that fields with
dictionaries as data are returned as expected and
not turned into string representations
|
2012-11-03 00:32:02 +01:00 |
|
Jacob Magnusson
|
19a218f859
|
Bye bye star import
|
2012-11-03 00:27:56 +01:00 |
|
Tom Christie
|
8ec54e6a9f
|
Tweaks
|
2012-11-02 20:56:51 +00:00 |
|
Tom Christie
|
6eaec7a0ec
|
foreign key tests
|
2012-11-02 20:53:33 +00:00 |
|
Tom Christie
|
e84ce60a0d
|
Initial PK relationship tests
|
2012-11-02 19:11:40 +00:00 |
|
Ben Konrath
|
9c82f9717e
|
Merge branch 'master' into restframework2-filter
|
2012-11-01 14:06:56 +01:00 |
|
Tom Christie
|
027c9079f6
|
PUT as create should return 201. Fixes #340.
|
2012-10-31 20:11:38 +00:00 |
|
Tom Christie
|
0047a46020
|
Merge fixes for 'blank=True' fields. Fixes #324, Fixes #325
Thanks to @Roarster.
|
2012-10-30 11:03:03 +00:00 |
|
Tom Christie
|
5670cb03bf
|
Allow use of absolute URLs when deserializing hyperlinked fields
|
2012-10-30 10:49:01 +00:00 |
|
Tom Christie
|
1b6fe9abb4
|
Hyperlinked serializer tests
|
2012-10-30 10:35:30 +00:00 |
|
Marko Tibold
|
6ccbdd10ad
|
Adding failing tests that show null=True model fields are won't validate if their value is omitted.
|
2012-10-30 00:03:24 +01: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 |
|
Tom Christie
|
6b6f0e682b
|
Merge pull request #331 from markotibold/test_put_as_create
Test put as create
|
2012-10-29 09:11:32 -07:00 |
|
Tom Christie
|
6e4ab09aae
|
readonly -> read_only
|
2012-10-28 20:21:45 +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 |
|
Tom Christie
|
3d3df22d82
|
Merge pull request #330 from tomchristie/tutorial-refactor
Tutorial refactor
|
2012-10-28 12:42:10 -07: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 |
|