aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2015-03-24Metadata should detect null boolean field type.Simon Charette
2015-03-19Handling the fallback in `reverse`Ion Scerbatiuc
2015-03-19Handle reversal of non-API view_name in HyperLinkedRelatedFieldIon Scerbatiuc
2015-03-14Simplify test settingsJosé Padilla
2015-03-13Fix lookup_url_kwarg handling in viewsets.Raphaël Barrois
The ``lookup_url_kwarg`` is intended to set the name of a field in the URL regexps when using custom ``lookup_field``, but the routers ignore it altogether.
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
2015-03-04Clean up pagination attributesTom Christie
2015-02-28Fix docstring formattingKevin Wood
2015-02-27Updated CreateOnlyDefault to call set_context on its default (if callable)Kevin Wood
2015-02-27Merge pull request #2608 from ↵Tom Christie
ezheidtmann/dont-swallow-errors-in-callable-sources Dont swallow errors in callable sources
2015-02-26Add tests for callable attributes raising exceptionsEvan Heidtmann
2015-02-26Merge pull request #2572 from Ins1ne/masterTom Christie
Fix UniqueTogetherValidator for NULL values
2015-02-26Who care what we do when it's totally malformed? Not me.Tom Christie
2015-02-26Update test for more graceful 1.8 handling of malformed filename encodingsTom Christie
2015-02-25Add a test for #2583 fixYannick PEROUX
2015-02-20Validator-fix, added min/max fields to test_metadataRense VanderHoek
2015-02-19Failing test for #2552José Padilla
2015-02-19Return UniquenessTogetherModel to previous stateAider Ibragimov
2015-02-19Skip validation of NULL field only if it part of unique_togetherAider Ibragimov
2015-02-18Fix UniqueTogetherValidator for NULL valuesAider Ibragimov
2015-02-13Merge pull request #2198 from tomchristie/version-3.1Tom Christie
Version 3.1
2015-02-10Failing test case for #1488Carlton Gibson
2015-02-09Merge masterTom Christie
2015-02-09Fixes for latest version of pep8Tom Christie
2015-02-09pep8 fixTom Christie
2015-02-09Py3 compat fixTom Christie
2015-02-06Minor cleanupTom Christie
2015-02-06Add trim_whitespace to CharField #2517José Padilla
If set to `True` then leading and trailing whitespace is trimmed. Defaults to `True`.
2015-02-05Minor bits of test cleanupTom Christie
2015-02-05Fix NamespaceVersioning with hyperlinked serializer fieldsTom Christie
2015-02-04Prefetching the user object when getting the token in TokenAuthentication.Ofir Ovadia
Since the user object is fetched 4 lines after getting Token from the database, this removes a DB query for each token-authenticated request.
2015-02-03Reorganize tests.Brandon Cazander
2015-02-02Remove unnecessary APIRequestFactory get from tests.Brandon Cazander
2015-02-02Provide rest_framework.resolve. Fixes #2489Brandon Cazander
2015-01-31Fix error text in test.Tom Christie
2015-01-30Merge masterTom Christie
2015-01-29Removed router check for deprecated '.model' attributeTymur Maryokhin
2015-01-28Merge pull request #2475 from sdreher/masterTom Christie
ManyRelatedField.get_value clearing field on partial update
2015-01-27Clone the versioning_scheme when necessary. Fixes #2477Brandon Cazander
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-27Reload api_settings when using Django's 'override_settings'Tom Christie
2015-01-24Streamline test for #2455Brandon Cazander
2015-01-24Add missed files for test.Brandon Cazander
2015-01-24Add failing test for request.version AttributeError in BrowsableAPI.Brandon Cazander
2015-01-23Added DictField and support for HStoreField.Tom Christie
2015-01-23Added UUIDField.Tom Christie
2015-01-23Merge masterTom Christie
2015-01-23More sensible response caching.Tom Christie