aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/serializers.py
AgeCommit message (Collapse)Author
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-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
2013-06-28Merge branch 'master' into writable-nested-modelserializerTom Christie
2013-06-26Use timezone aware datetimes with oauth2 provider, when supported. Closes #947.Tom Christie
2013-06-17HyperlinkedModelSerializer supports overriding of 'url' field. Closes #936Tom Christie
2013-06-05Merge masterTom Christie
2013-06-03Merge pull request #900 from copitux/fix-validation-layerTom Christie
Bugfix: Fix run validation layer with invalid data
2013-06-02view_name argument to HyperlinkedModelSerializer is now properly enforced. ↵Tom Christie
Closes #471
2013-05-31HyperlinkedModelSerializer lookup_field option should apply to ↵Tom Christie
HyperlinkedIdentityField
2013-05-29Bugfix: Fix run validation layer with invalid dataDavid Medina
2013-05-28Fixed typosPascal Borreli
2013-05-24Clean up OPTIONS implementationTom Christie
2013-05-24Merge branch 'issue-192-expose-fields-for-options' of ↵Tom Christie
https://github.com/grimborg/django-rest-framework into improved-options-support
2013-05-23simplified, moved field humanizing to Field. broken testsOscar Vilaplana
2013-05-21Merge and styling fixesTom Christie
2013-05-18Fix order for applying min_value to fieldsStephan Groß
2013-05-18Merge branch 'master' into mjtorn-masterMarkus Törnqvist
Conflicts: rest_framework/serializers.py rest_framework/tests/serializer.py Fixed conflicts
2013-05-18Add min_value=0 to autogenerated Pos..IntFieldsStephan Groß
2013-05-18Rename has_user_through_model -> has_through_modelTom Christie
2013-05-18Merge pull request #854 from ryankask/issue-775Tom Christie
All relations pointing to ManyToManyFields should default to read-only
2013-05-18Merge pull request #858 from minddust/fix_710Tom Christie
Fix for #710
2013-05-18Update getattrStephan Groß