aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/serializer.py
AgeCommit message (Collapse)Author
2013-01-23Add separate test for failed custom validationStephan Groß
2013-01-21Add failed testcase for fieldvalidationStephan Groß
2013-01-04Validation errors instead of exceptions when serializers receive incorrect ↵Tom Christie
types. Fixes #402.
2013-01-03Merge pull request #541 from yprez/default_and_partial_serializers2Tom Christie
Fix "default" values and partial serializers. Fixes #532.
2012-12-29Merge pull request #515 from yprez/blank_fields_issueTom Christie
Fix for #514
2012-12-25Regression test for #532 - values overriden by "default" settingYuri Prezument
2012-12-19Merge remote-tracking branch 'upstream/master' into related-requiredMark Aaron Shirley
2012-12-19urls, patterns, include imports move to compat to support incoming 1.3 thru ↵Tom Christie
1.6 import compatability
2012-12-19Failing test with partial serializer and foreign keysYuri Prezument
2012-12-17Failing test case for #514Yuri Prezument
Serializer errors are: {'title': [u'This field is required.']}
2012-12-15Added test for "positive_integer in choices tuple does not get parsed if not ↵Joel Marcotte
string". Signed-off-by: Joel Marcotte <skaner@gmail.com>
2012-12-12Clean up field initialization. Fixes #497Tom Christie
2012-12-11Fix broken nested fieldsTom Christie
2012-12-11Added depth testGeorge Kappel
2012-12-10get_excluded_fieldnames() should respect Meta options' ability to be either ↵Marko Tibold
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-07Merge pull request #451 from markotibold/#431Tom Christie
Call model's .full_clean() method, eg. to validate uniqueness
2012-12-06Merge pull request #477 from roberts81/masterTom Christie
Fix for #460
2012-12-06Merge branch 'master' of ↵Marko Tibold
https://github.com/tomchristie/django-rest-framework into #431
2012-12-06cleaned up white space & docstring stylingBen Roberts
2012-12-05cleaned up last commitBen Roberts
2012-12-05added tests and fix for unpickleable metadata in SortedDictWithMetadataBen Roberts
2012-11-30fix test responsePavel Savchenko
2012-11-30add traverse_related feature + tests (fixes issue#461)Pavel Savchenko
2012-11-26Added an assertion to the tests that checks the '.errors' value for the ↵Marko Tibold
unique-test
2012-11-22Added a validate_unique test.Marko Tibold
2012-11-22Added _post_clean() behaviour by adding a .perform_model_validation() method.Marko Tibold
Fixed some tests that were failing due to extra strict validation.
2012-11-21Merge remote-tracking branch 'upstream/master' into partial-updateMark Aaron Shirley
2012-11-21Merge remote-tracking branch 'upstream/master' into regex_fieldStephan Groß
Conflicts: docs/topics/release-notes.md
2012-11-21added testsStephan Groß
2012-11-20Merge pull request #430 from j4mie/serializer-method-fieldTom Christie
Serializer method field
2012-11-20Add support for partial serializer updatesMark Aaron Shirley
2012-11-20Clean up and clarify tests for related serializersJamie Matthews
2012-11-20Fix related serializers with source argument that resolves to a callableJamie Matthews
2012-11-19Add SerializerMethodFieldJamie Matthews
2012-11-18Add support for min_length / max_length keywordsJacob Magnusson
on basic ModelFields
2012-11-16Added URLField and SlugField.Marko Tibold
Fixed test_modelserializer_max_length_exceeded
2012-11-16Reproduces #421Marko Tibold
2012-11-09Support for `read_only_fields` on `ModelSerializer` classesTom Christie
2012-11-05Swap position of `instance` and `data` keyword arguments.Tom Christie
2012-11-03Added test for ModelSerializer Meta fieldsJacob Magnusson
returning as expected
2012-11-03Added test that makes sure that fields withJacob Magnusson
dictionaries as data are returned as expected and not turned into string representations
2012-11-03Bye bye star importJacob Magnusson
2012-10-30Merge fixes for 'blank=True' fields. Fixes #324, Fixes #325Tom Christie
Thanks to @Roarster.
2012-10-30Adding failing tests that show null=True model fields are won't validate if ↵Marko Tibold
their value is omitted.
2012-10-28readonly -> read_onlyTom Christie
2012-10-26Fix failing 'default' on ModelSerializerTom Christie
2012-10-24Add cross-field validate methodJamie Matthews
2012-10-24Switch from clean_<fieldname> to validate_<fieldname>, clarify documentationJamie Matthews
2012-10-24Implement per-field validation on SerializersJamie Matthews
2012-10-22#314 Fix for manytomany field being required in the payload even though the ↵Ian Strachan
field is specified as readonly in the serializer