Tom Christie
|
76ac641fbd
|
Minor tweaks for helpful message on Model.objects.create() failure.
|
2014-12-02 13:04:49 +00:00 |
|
Tom Christie
|
54b7b32818
|
Merge branch 'fixes/2013' of git://github.com/gregmuellegger/django-rest-framework into gregmuellegger-fixes/2013
|
2014-12-02 12:46:47 +00:00 |
|
Tom Christie
|
79e18a2a06
|
Raise assertion error if calling .save() on a serializer with errors. Closes #2098.
|
2014-12-02 09:27:40 +00:00 |
|
Tom Christie
|
270c7acdd7
|
Minor validtors tweak
|
2014-12-01 11:59:04 +00:00 |
|
Tom Christie
|
22c5b863bc
|
More descriptive docstring on ModelSerializer
|
2014-12-01 11:37:38 +00:00 |
|
Tom Christie
|
b9503cd603
|
Support Django's core ValidationError for backwards compat. Refs #2145.
|
2014-12-01 10:48:45 +00:00 |
|
Tom Christie
|
d4b8e356b9
|
Merge branch '3.0-docs'
|
2014-11-28 09:57:02 +00:00 |
|
Tom Christie
|
34ca8cd2a5
|
Moar docs. Amazing.
|
2014-11-28 09:56:44 +00:00 |
|
Tom Christie
|
6b2033f789
|
Drop transform_<field_name>
|
2014-11-27 16:40:58 +00:00 |
|
Tom Christie
|
fd980be39b
|
Documentation in 'many_init' docstring. Refs #2120.
|
2014-11-25 10:39:58 +00:00 |
|
Tom Christie
|
bde7255413
|
Fix non-determanistic default bug. Closes #2099.
|
2014-11-20 09:30:49 +00:00 |
|
Tom Christie
|
40b1ea919b
|
Fix non-determanistic unique constraint mapping. Refs #2092.
|
2014-11-19 14:51:49 +00:00 |
|
Tom Christie
|
8516281078
|
Minor fix for #2092.
|
2014-11-19 14:40:30 +00:00 |
|
Tom Christie
|
8586290df8
|
Apply defaults and requiredness to unique_together fields. Closes #2092.
|
2014-11-19 13:55:10 +00:00 |
|
Tom Christie
|
5e74f02d61
|
Note removal of 'save_object' and fail loudly if it exists
|
2014-11-18 14:49:00 +00:00 |
|
Gregor Müllegger
|
ad060aa360
|
More helpful error message when default .create fails. Closes #2013.
|
2014-11-15 15:29:52 +01:00 |
|
Tom Christie
|
7394dcec9e
|
ReturnList and ReturnDict wrapped at nicer point
|
2014-11-13 23:05:44 +00:00 |
|
Tom Christie
|
992330055e
|
Refactor many
|
2014-11-13 21:11:13 +00:00 |
|
Tom Christie
|
78a741be27
|
Split out .create and .update on ListSerializer
|
2014-11-13 20:24:48 +00:00 |
|
Tom Christie
|
3e878a3207
|
Fix initial data on serializers to reflect writable fields
|
2014-11-07 15:38:27 +00:00 |
|
Tom Christie
|
55c44fc921
|
Fix serializer initial data
|
2014-11-07 14:13:50 +00:00 |
|
Tom Christie
|
e399140031
|
Minor tweaks
|
2014-11-07 10:51:08 +00:00 |
|
Tom Christie
|
9b19b5a594
|
Serializer cleanup
|
2014-11-07 10:13:46 +00:00 |
|
Tom Christie
|
4e001dbb7a
|
Drop usage of SortedDict. Closes #2027.
|
2014-11-06 12:00:30 +00:00 |
|
Tom Christie
|
a919068c5d
|
Fix exception style for py3
|
2014-11-06 11:35:34 +00:00 |
|
Tom Christie
|
4482be46ae
|
More precise assertion error for bulk update
|
2014-11-06 11:10:36 +00:00 |
|
Tom Christie
|
ed541864e6
|
Support for bulk create. Closes #1965.
|
2014-11-06 10:34:59 +00:00 |
|
Tom Christie
|
49fae23000
|
Pass through kwargs to both Serializer and ListSerializer
|
2014-11-05 15:23:13 +00:00 |
|
Tom Christie
|
d048d32876
|
Minor cleanup
|
2014-11-05 13:40:21 +00:00 |
|
Tom Christie
|
003c42b0f5
|
Use invalid_data key for error message. Closes #2002.
|
2014-11-03 14:01:02 +00:00 |
|
Tom Christie
|
207208fedf
|
Lazy loading of fields and validators. Closes #1963.
|
2014-10-31 16:38:39 +00:00 |
|
Tom Christie
|
2762205887
|
Validator documentation and tweaks
|
2014-10-31 13:47:36 +00:00 |
|
Tom Christie
|
9ebaabd6eb
|
unique_for_date/unique_for_month/unique_for_year
|
2014-10-28 16:21:49 +00:00 |
|
Tom Christie
|
f9c0e6ee1b
|
unique_for_month, unique_for_year
|
2014-10-22 16:29:09 +01:00 |
|
Tom Christie
|
ae53fdff9c
|
First pass at unique_for_date, unique_for_month, unique_for_year
|
2014-10-22 13:30:28 +01:00 |
|
Tom Christie
|
c5d1be8eac
|
.validate() can raise field errors or non-field errors
|
2014-10-22 10:32:32 +01:00 |
|
Tom Christie
|
05cbec9dd7
|
Use serializers.ValidationError
|
2014-10-17 13:23:14 +01:00 |
|
Tom Christie
|
32fd82ba0d
|
get_attribute method on fields
|
2014-10-16 20:47:57 +01:00 |
|
Tom Christie
|
7b666e982c
|
Stricter checking for failure cases.
|
2014-10-16 20:47:57 +01:00 |
|
Marty Alchin
|
4248a6c499
|
Add a keys method to BindingDict
|
2014-10-15 17:54:58 -07:00 |
|
Tom Christie
|
b4f3379c70
|
Support fields that reference a simple callable
|
2014-10-15 15:13:28 +01:00 |
|
Tom Christie
|
e272a36c9b
|
Fix 'lookup_field' on ModelSerializer. Closes #1944.
|
2014-10-15 09:24:49 +01:00 |
|
Tom Christie
|
826b5a8897
|
Relations in 'read_only_fields' should not include a queryset kwarg
|
2014-10-10 15:34:00 +01:00 |
|
Tom Christie
|
b5a4216aff
|
Flake8
|
2014-10-10 15:08:43 +01:00 |
|
Tom Christie
|
d8a8987ab1
|
Tweaks
|
2014-10-10 14:32:02 +01:00 |
|
Tom Christie
|
d9a199ca0d
|
exceptions.ValidationFailed, not Django's ValidationError
|
2014-10-10 14:16:09 +01:00 |
|
Tom Christie
|
f83ed19d22
|
Checks and repr on BoundField
|
2014-10-09 16:29:34 +01:00 |
|
Tom Christie
|
5d247a65c8
|
First pass on nested serializers in HTML
|
2014-10-09 15:11:19 +01:00 |
|
Tom Christie
|
14ae52a24e
|
More gradual deprecation
|
2014-10-08 16:09:37 +01:00 |
|
Tom Christie
|
28f3b314f1
|
.validate() returning validated data. transform_<field> hooks.
|
2014-10-08 12:36:28 +01:00 |
|