aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_relations.py
AgeCommit message (Collapse)Author
2015-01-30Merge masterTom Christie
2015-01-27reorganize importsSusan Dreher
2015-01-27reorganize importsSusan Dreher
2015-01-27:bug: ManyRelatedField get_value clearing field on partial updateSusan Dreher
A PATCH to a serializer's non-related CharField was clearing an ancillary StringRelatedField(many=True) field. The issue appears to be in the ManyRelatedField's get_value method, which was returning a [] instead of empty when the request data was a MultiDict. This fix mirrors code in fields.py, class Field, get_value, Ln. 272, which explicitly returns empty on a partial update. Tests added to demonstrate the issue.
2015-01-07prefer single quotes in source and double quotes in user visible strings; ↵Craig Blaszczyk
add some missing full stops to user visible strings
2014-11-28Drop defunct testsTom Christie
2014-10-17Use serializers.ValidationErrorTom Christie
2014-10-10exceptions.ValidationFailed, not Django's ValidationErrorTom Christie
2014-10-03Minor: fix spelling and grammar, mostly in 3.0 announcementCraig de Stigter
2014-09-25Clean up bind - no longer needs to be called multiple times in nested fieldsTom Christie
2014-09-12Access validation messages in a way thats compatible with 1.4, 1.5Tom Christie
2014-09-12Tests for relational fields (not including many=True)Tom Christie
2014-09-09Fleshing out serializer fieldsTom Christie
2014-09-02Getting tests passingTom Christie
2014-08-19Code linting and added runtests.pyTom Christie
2014-04-17Merge remote-tracking branch 'pelme/pytest' into feature/pytestXavier Ordoquy
Conflicts: .travis.yml rest_framework/runtests/runtests.py tests/test_filters.py tests/test_pagination.py tox.ini
2014-03-02Support for running the test suite with py.testAndreas Pelme
* Get rid of runtests.py * Moved test code from rest_framework/tests and rest_framework/runtests to tests * Invoke py.test from setup.py * Invoke py.test from Travis * Invoke py.test from tox * Changed setUpClass to be just plain setUp in test_permissions.py * Updated contribution guideline to show how to invoke py.test