aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests
AgeCommit message (Collapse)Author
2014-01-14Added write_only and write_only_fields. Refs #1306Tom Christie
2014-01-13Merge branch 'testing-nested-serializers' of ↵Tom Christie
git://github.com/dustinfarris/django-rest-framework into dustinfarris-testing-nested-serializers
2014-01-13Move ImportingModelSerializerTests and add comments.Dustin Farris
2014-01-13Move models.resolve_model to serializers._resolve_modelDustin Farris
2014-01-12Add a sanity check to avoid running into unresolved related models.Dustin Farris
2014-01-09Test case for #1129Xavier Ordoquy
2014-01-09Move serializer import to top-level causes test errorDustin Farris
2014-01-08Testing nested serializers with models that have str foreign key references.Dustin Farris
2013-12-23can't save genericrelations via nested serializers in django 1.6S. Andrew Sheppard
2013-12-23Tweak test styleTom Christie
2013-12-23Updated tests to pass in python 3Tom Christie
2013-12-23fix url double quoted in Django 1.6Yin Jifeng
get_full_path returns unicode, so we use build_absolute_uri which returns iri_to_uri'ed one
2013-12-21Merge pull request #1309 from lukaszb/errors-for-renamed-fieldsTom Christie
Should it be that way?
2013-12-21Additional test for 'source' behaviour. Refs #1302Tom Christie
2013-12-20Should it be that way?Lukasz Balcerzak
2013-12-20Merge pull request #1308 from lukaszb/missing-custom-validation-method-testTom Christie
Added missing custom validation method test
2013-12-20Added missing custom validation method testLukasz Balcerzak
2013-12-20Updated test class name to be uniqueLukasz Balcerzak
2013-12-16Merge branch 'nullbooleanfield_testcase' of ↵Tom Christie
git://github.com/dpetzel/django-rest-framework into dpetzel-nullbooleanfield_testcase Conflicts: rest_framework/tests/test_serializer.py
2013-12-16Fix expansion of writable nested serializers where the inner fields have ↵Craig de Stigter
source set.
2013-12-13Compat fixes for django-oauth-plus versions 2.0-2.2.1Tom Christie
2013-12-13Merge branch 'master' of git://github.com/philipforget/django-rest-framework ↵Tom Christie
into philipforget-master
2013-12-13Fix default values always being False for browsable APIKevin Brown
This fixes a bug that was introduced in 28ff6fb [1] for the browsable API, specifically with how it handled default values for boolean fields. Previously, it had a global default for boolean fields set to `False`, which was different than the standard None that was used elsewhere. Because this only needed to be done for the browsable API, a fix was put into place that only set the default to `False` when form data was passed into the serializer. This had the unintended side effect of overriding any default set on the boolean field. This fixes #1101 [2] by only overriding the default if the default is `None`, which is the default for all fields. [1]: https://github.com/tomchristie/django-rest-framework/commit/28ff6fb1ec02b7a04c4a0db54885f3735b6dd43f [2]: https://github.com/tomchristie/django-rest-framework/issues/1101
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-09Fix compat issues for #1231Tom Christie
2013-12-09Merge branch 'issue-1231-jsonencoder' of ↵Tom Christie
git://github.com/mbox/django-rest-framework into mbox-issue-1231-jsonencoder
2013-12-09Merge masterTom Christie
2013-12-09Drop unneeded assertTom Christie
2013-12-09Catch and mask ParseErrors that occur during rendering of the BrowsableAPI.Tom Christie
2013-12-06Version 2.3.102.3.10Tom Christie
2013-12-06Raise appropriate error in serializer when making a partial update to set a ↵Chuck Harmston
required RelatedField to null (issue #1158)
2013-12-03Remove Content-Type header from empty responses. Fixes #1196Tom Christie
2013-12-03First pass at a test for ParseErrors breaking the browsable APITom Christie
2013-11-27Add unittests for ChoiceField metadata.Ian Foote
Rename 'name' to 'display_name'.
2013-11-22Remove u from literalsMalcolm Box
2013-11-21Fix issue #1231: JSONEncoder doesn't handle dict-like objectsMalcolm Box
Check for __getitem__ and then attempt to convert to a dict. The check for __getitem__ is there as there's no universal way to check if an object is a mapping type, but this is a likely proxy
2013-11-19Added handling of validation errors in PUT-as-create.Krzysztof Jurewicz
Fixes #1035.
2013-11-18Removed the DynamicSerializerView duplicationXavier Ordoquy
2013-11-17Fixed the nested model serializers in case of the related_name isn’t set.Xavier Ordoquy
2013-11-15add auth param to request client callsPhilip Forget
2013-11-12Merge branch 'master' into allow-aggregate-orderingAlex
2013-11-12Add queryset aggregates to allowed fields in OrderingFilterAlex
2013-11-06Drop u'' prefix for python 3.x compatibilityMathieu Pillard
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-24Fixed UnicodeEncodeError when POST JSON via web interface; added testalexanderlukanin13
2013-10-21remove stray func from testRoss McFarland
2013-10-19paginator should validate page and provide defaultRoss McFarland
- use the standard paginator.validate_number method rather strict_postive_int. - support optional paginator method, default_page_number, to get the default page number rather than hard-coding it to 1 - this allows supporting non-integer based pagination which can be an important performance tweak on extermely large datasets or high request loads - relatively thorough unit tests of the changes
2013-10-18add test case around ensuring proper field inference for boolean model field ↵dpetzel
types
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