aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_relations_pk.py
AgeCommit message (Collapse)Author
2015-03-06Add support for serializing models with m2m related fieldsMatt d'Entremont
- In both ManyRelatedField, provide an empty return when trying to access a relation field if the instance in question has no PK (so likely hasn't been inserted yet) - Add relevant tests - Without these changes, exceptions would be raised when trying to serialize the uncreated models as it is impossible to query relations without a PK - Add test to ensure RelatedField does not regress as currently supports being serialized with and unsaved model
2014-12-10Optimizations play nicely with select_related, prefetch_relatedTom Christie
2014-11-28Drop defunct testsTom Christie
2014-10-16Performance for PK fieldsTom Christie
2014-10-08Tests for relational fieldsTom Christie
2014-09-02Getting tests passingTom Christie
2014-08-19Drop six from compat. 1.4.2 is now the lowest supported version.Tom Christie
2014-08-19Code linting and added runtests.pyTom Christie
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