aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
AgeCommit message (Collapse)Author
2014-05-16Added missing import.Xavier Ordoquy
2014-04-29Merge remote-tracking branch 'upstream/master'Emanuele Pucciarelli
Conflicts: rest_framework/tests/models.py
2014-04-24Add help_text and verbose_name attribute mapping for related fieldSergey Sinitsyn
2014-04-13Use setattr for adding fields to a new instanceIan Foote
Add test for restoring a GenericForeignKey
2014-04-12Set GenericForeignKey fields on object before saveIan Foote
* A model with a required GenericForeignKey can be saved if the field is set
2014-03-31Merge pull request #1477 from vlastv/patch-1Xavier Ordoquy
Writable star source with instance
2014-03-28Do not check model_field's attributes if it is NoneEmanuele Pucciarelli
2014-03-24Use help_text, verbose_name, editable attributes for related fieldsEmanuele Pucciarelli
2014-03-20Merge pull request #1474 from elmehdikarami/masterTom Christie
Update serializers.py
2014-03-20Fixed copy-pasteVladislav Vlastovskiy
2014-03-20Moved get component from object after test source is starVladislav Vlastovskiy
2014-03-19Update serializers.pyelmkarami
2014-03-19Update serializers.pyelmkarami
Prevent iterating over a string that is supposed to be an iterable <==> Prevent read_only_fields = ('some_string)
2014-03-19Update serializers.pyelmkarami
Prevent iterating over a string that is supposed to be an iterable <==> Prevent read_only_fields = ('some_string)
2014-03-06Fixed the validation for optional fields that have a value.Xavier Ordoquy
2014-03-05Fix typoRodolfo Carvalho
2014-02-11Test and quick fix for #1257Carlton Gibson
2014-02-04Fixes typo (Implicit instead of Implict).juroe
2014-01-15Nicer write_only fields implementation. Closes #1355Tom Christie
2014-01-14Merge branch 'master' of git://github.com/sprymak/django-rest-framework into ↵Tom Christie
sprymak-master
2014-01-14Added write_only and write_only_fields. Refs #1306Tom Christie
2014-01-14Override HyperlinkedModelSerializerOptions url field name with ↵S.Prymak
URL_FIELD_NAME setting
2014-01-13Minor tweaksTom Christie
2014-01-13Move models.resolve_model to serializers._resolve_modelDustin Farris
2014-01-13Make HyperlinkedModelSerializer `url` field name customizableS.Prymak
2014-01-12Add a sanity check to avoid running into unresolved related models.Dustin Farris
2014-01-02FIX BaseSerializer.from_native has an altered signatureSteven Cummings
* base classes define it with one parameter * BaseSerializer currently defines a second parameter, which we make optional here for method-dispatch passivity
2013-12-23fix for genericrelation savingS. Andrew Sheppard
2013-12-21Less brittle through relationship testing. Closes #1292.Tom Christie
2013-12-16Merge pull request #1184 from dpetzel/nullbooleanfield_fixTom Christie
Fix infered field type for models.NullBooleanField
2013-12-16Fix expansion of writable nested serializers where the inner fields have ↵Craig de Stigter
source set.
2013-12-13Clean up implementationTom Christie
2013-12-13Merge pull request #1234 from linovia/bugfix/nested_models_without_related_nameTom Christie
Fixed the nested model serializers in case of the related_name isn’t set...
2013-12-10Refine model manager behavior so as not to use the behavior in incorrect ↵Tom Christie
cases. Closes #1205
2013-12-06Raise appropriate error in serializer when making a partial update to set a ↵Chuck Harmston
required RelatedField to null (issue #1158)
2013-11-18Another fix for nested writable serializers in case of the related_name ↵Xavier Ordoquy
isn’t set on the ForeignKey.
2013-11-17Fixed the nested model serializers in case of the related_name isn’t set.Xavier Ordoquy
2013-11-11Typo on api-guide/fields.md and serializers.pyDoğan Çeçen
2013-11-08Merge pull request #1217 from benpbenp/masterTom Christie
Fix object creation with reverse M2M when related_name unspecified
2013-11-08Fix object creation with reverse M2M when related_name unspecifiedBen Pietravalle
It seems that field.related_query_name() does not return the related_name for reverse M2M relations when related_name is not explicitly set in the M2M field definition. So, change to use obj.get_accessor_name(), where obj is an instance of RelatedObject, as are returned by a model's _meta.get_all_related_many_to_many_objects(), or as in the tuples returned by _meta.get_all_m2m_objects_with_model().
2013-11-08Fixed a regression with ValidationError under Django 1.6Xavier Ordoquy
2013-11-05Improve handling of 'empty' values for ChoiceFieldMathieu Pillard
The empty value defaults back to '' (for backwards-compatibility) but is changed automatically to None for ModelSerializers if the `null` property is set on the db field.
2013-10-18This fix results in models.NullBooleanField rendering as a checkbox in the ↵dpetzel
browsable API
2013-10-17Merge pull request #1170 from craigds/write-into-foreignkey-with-sourceTom Christie
fix writing into foreign key with non-null source
2013-10-17Merge pull request #1112 from tamakisquare/issue-1111Tom Christie
Test case and fix for issue 1111
2013-10-17Fix a docstring to reflect what the method doesBruno Renié
2013-10-15[Fix]: Error with partial=True and validate_<name>Colin Huang
The error occurs when serializer is set with partial=True and a field-level validation is defined on a field, for which there's no corresponding update value in .data
2013-10-11fix writing into foreign key with non-null sourceCraig de Stigter
2013-10-10Merge branch 'master' of https://github.com/tomchristie/django-rest-frameworkTom Christie
2013-10-10Ensure read-only fields don't break with current HTML renderer behaviorTom Christie