Tom Christie
|
aa72f8d63d
|
Fix bug with M2M in browseable API
|
2012-12-17 21:59:51 +00:00 |
|
Tom Christie
|
35f72cecb1
|
Fix model validation exclusions. Fixes #500. Fixes #506.
|
2012-12-15 20:40:41 +00:00 |
|
Tom Christie
|
39b01d6802
|
Ensure context is passed to dynamically added fields. Fixes #476.
|
2012-12-14 19:59:29 +00:00 |
|
Tom Christie
|
497da7fc69
|
Clean up field initialization. Fixes #497
|
2012-12-12 20:45:06 +00:00 |
|
Tom Christie
|
85bf4164dd
|
Drop left over code
|
2012-12-11 22:09:04 +00:00 |
|
Tom Christie
|
4058223309
|
Fix broken nested fields
|
2012-12-11 21:07:25 +00: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
|
ac2720afcb
|
Add null related field option
|
2012-12-08 13:00:49 +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 |
|
Marko Tibold
|
919aff329e
|
Fix AttributeError caused by accessing a non-existing default_keys attribute.
|
2012-12-07 00:08:27 +01: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 |
|
Ben Roberts
|
cb7d9ea5c9
|
cleaned up white space & docstring styling
|
2012-12-06 12:45:50 -07:00 |
|
Ben Roberts
|
705c7ad09d
|
added tests and fix for unpickleable metadata in SortedDictWithMetadata
|
2012-12-05 17:43:47 -07:00 |
|
Pavel Savchenko
|
e311b763e1
|
add traverse_related feature + tests (fixes issue#461)
|
2012-11-30 01:34:46 +02:00 |
|
Marko Tibold
|
899f96ae91
|
Added a get_excluded_fieldnames() method.
Model validation now excludes fields not listed in Meta fields (if set).
|
2012-11-27 23:49:27 +01:00 |
|
Marko Tibold
|
f104f74340
|
Moved model validation from .perform_validation() to .validate()
|
2012-11-27 23:21:12 +01:00 |
|
Tom Christie
|
7ade5add21
|
Merge pull request #439 from irrelative/master
Cache all fields per serializer instance
|
2012-11-22 16:17:47 -08:00 |
|
Marko Tibold
|
bd8c742df2
|
Cleanup.
|
2012-11-22 23:39:16 +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 |
|
jedavis83@gmail.com
|
2e36e0c910
|
Remove unneeded and incorrect self reference
|
2012-11-22 12:22:30 -08:00 |
|
jedavis83@gmail.com
|
08e7818530
|
More consistent iteration over default_fields, per feedback.
|
2012-11-22 11:27:55 -08:00 |
|
jedavis83@gmail.com
|
e9944f82d1
|
Keep Serializer.fields API consistent while caching values.
|
2012-11-22 10:50:29 -08:00 |
|
Mark Aaron Shirley
|
0876bed963
|
Merge remote-tracking branch 'upstream/master' into partial-update
|
2012-11-21 09:37:22 -08:00 |
|
Stephan Groß
|
774d687a31
|
updated comparison due to pep8 programming recommendations
http://www.python.org/dev/peps/pep-0008/#programming-recommendations
|
2012-11-21 14:58:33 +01:00 |
|
jedavis83@gmail.com
|
8b0561c57e
|
Cache all fields on serializer init, not just default fields.
|
2012-11-20 23:09:47 -08:00 |
|
Tom Christie
|
9b63ba3800
|
Merge pull request #433 from irrelative/master
Cache default_fields per serializer instance for faster serialization
|
2012-11-20 15:13:30 -08:00 |
|
Mark Aaron Shirley
|
c3644234cd
|
Add support for partial serializer updates
|
2012-11-20 11:01:21 -08:00 |
|
Jamie Matthews
|
68c397371c
|
Fix related serializers with source argument that resolves to a callable
|
2012-11-20 09:41:36 +00:00 |
|
jedavis83@gmail.com
|
2cf0fda2ae
|
Cache default fields per serializer instance for improved performance
|
2012-11-19 22:09:40 -08: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 |
|
Marko Tibold
|
1a436dd6d9
|
Added URLField and SlugField.
Fixed test_modelserializer_max_length_exceeded
|
2012-11-16 22:43:16 +01:00 |
|
Marko Tibold
|
f385b72d80
|
Whoops … Drop pdb
|
2012-11-16 22:20:26 +01:00 |
|
Marko Tibold
|
aa013a4289
|
Fixes #421
|
2012-11-16 22:18:57 +01:00 |
|
Marko Tibold
|
403886b79b
|
Merge commit '3b258d69c92e9d9293f7c5d1690f0ca434e677e3' into file_and_image_fields
|
2012-11-15 22:48:22 +01:00 |
|
Marko Tibold
|
c35b9eb065
|
Processed review comments.
No type checking in .restore_fields()
Added missing BytesIO import.
|
2012-11-14 21:13:23 +01:00 |
|
Stephan Groß
|
44ff2e0add
|
fixed some typos
|
2012-11-14 19:36:29 +01:00 |
|
Marko Tibold
|
5443dd5f3c
|
Added a FileField and an ImageField (copied from django.forms.fields).
Adjusted generics, mixins and serializers to take a `files` arg where applicable.
|
2012-11-13 23:26:17 +01:00 |
|
Tom Christie
|
21468a1867
|
Fix broken depth argument
|
2012-11-13 11:47:32 +00:00 |
|
Tom Christie
|
e224061189
|
Support for read_only_fields on ModelSerializer classes
|
2012-11-09 17:01:20 +00:00 |
|
Tomi Pajunen
|
40c6fe7119
|
Comments updated
|
2012-11-08 17:04:29 +02:00 |
|
Tomi Pajunen
|
743224d000
|
Fixed creation of objects with reversed M2M relations
|
2012-11-08 16:31:16 +02:00 |
|
Toni
|
5d69628250
|
Update rest_framework/serializers.py
fixed AttributeError in case restore_object is overwritten without explicitly setting self.m2m_data
|
2012-11-05 20:55:03 +01:00 |
|
Tom Christie
|
6d201c362f
|
Drop unneccesarily lenient dictionary-containing-instances serialization.
|
2012-11-05 16:19:11 +00:00 |
|
Tom Christie
|
33be4b43b9
|
queryset argument is now optional on writable model fields.
|
2012-11-05 12:51:04 +00:00 |
|
Tom Christie
|
ccd5f29510
|
Tidy up serializer fields now we no longer use dynamic fields
|
2012-11-05 11:03:36 +00:00 |
|
Tom Christie
|
dfb8225447
|
Add note on * import
|
2012-11-05 10:56:30 +00:00 |
|
Tom Christie
|
b7b942c599
|
Swap position of instance and data keyword arguments.
|
2012-11-05 10:53:20 +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 |
|