aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
AgeCommit message (Collapse)Author
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
2013-10-09Merge pull request #1071 from craigds/field-transform-methodsCarlton Gibson
Feature: add transform_<fieldname> methods to serializers
2013-10-02Fix rendering of forms and add error rendering on HTML formTom Christie
2013-10-02Serializers can now be rendered directly to HTMLTom Christie
2013-09-20Clear cached serializer data on `save()` + test. Fixes #1116.Carlton Gibson
2013-08-30Drop broken placeholder serializations.Tom Christie
2013-08-29add transform_<fieldname> methods to serializers, which basically do the ↵Craig de Stigter
opposite of validate_<fieldname> on a per-field basis.
2013-08-28Simplifying raw data renderering supportTom Christie
2013-08-27First hacky pass at displaying raw dataTom Christie
2013-08-25Merge pull request #1058 from ericbuehl/masterTom Christie
parameterize identity field serializer class to allow for easier subclassing
2013-08-23parameterize identity field class to allow for easier subclassingEric Buehl
2013-08-23Cleanup and dealing with empty form data.Tom Christie
2013-08-23Merge branch 'display-nested-data' into html-form-rendererTom Christie
2013-08-23Tweaks to display nested data in empty serializersTom Christie
2013-08-12If null or blank - don't save the nested objectYuri Prezument
2013-08-12Merge pull request #1030 from etos/patch-2Tom Christie
Spelling correction on read_only_fields err msg
2013-08-10Spelling correction on read_only_fields err msgDan Stephenson
just spotted extras
2013-08-10Spelling correction on read_only_fields err msgDan Stephenson
2013-07-26Fixed reversed arguments in assertionKevin Brown