aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
AgeCommit message (Collapse)Author
2015-02-10Merge pull request #2540 from linovia/release/3.0.53.0.5Xavier Ordoquy
Release/3.0.5
2015-02-10Bumped the version to 3.0.5Xavier Ordoquy
2015-02-10Add `distinct` call in `filter_queryset`Carlton Gibson
2015-02-09Fixes for latest version of pep8Tom Christie
2015-02-09Py3 compat fixTom Christie
2015-02-09Fix misleading AttributeErrorsTom Christie
2015-02-05Update throttling.pyKaptian
Use pk pseudo attribute for identifying the user (in case the user model is not the default and has a different column name for the unique id)
2015-02-04Merge pull request #2518 from longhotsummer/patch-1Tom Christie
FIX: Don't default to list in method args
2015-02-04Parens around if clauseGreg Kempe
2015-02-04Use inline ifGreg Kempe
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-04FIX: Don't default to list in method argsGreg Kempe
Fixes @list_route and @detail_route so that they don't initialize their `methods` parameter as a list. In some cases the list gets cleared, and the result is that default parameter is now empty, and may get reused unexpectedly.
2015-02-02Fixed missing whitespace in error string.Jason Yan
2015-02-02Fixed typos in docstrings.Omer Katz
2015-01-31_closable_objects as an empty list, not deletedempty_closable_objectsTom 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-28Merge pull request #2479 from lucaswiman/custom_user_shim_db_tableTom Christie
Use the proper db_table argument when constructing meta
2015-01-28Merge pull request #2473 from tomchristie/reload-settingsTom Christie
Reload api_settings when using Django's 'override_settings'
2015-01-27Use the proper db_table argument when constructing metaLucas Wiman
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-27Bumped the version.Xavier Ordoquy
2015-01-27Reload api_settings when using Django's 'override_settings'Tom Christie
2015-01-23Merge pull request #2453 from alexsdutton/data-and-files-none-dataTom Christie
Pass {} as data to DataAndFiles, as it ends up in a MergeDict
2015-01-23Pass {} as data to DataAndFiles, as it ends up in a MergeDictAlexander Dutton
In the same vein as #2399.
2015-01-23Added DictField and support for HStoreField.Tom Christie
2015-01-23Support assignment in ClassLookupDictTom Christie
2015-01-23Added UUIDField.Tom Christie
2015-01-23More sensible response caching.Tom Christie
2015-01-23More graceful handling of malformed Content-DispositionTom Christie
2015-01-23Work around meta API differencesTom Christie
2015-01-21Owned by import *Xavier Ordoquy
2015-01-21Workaround Django issue 24198.Xavier Ordoquy
2015-01-21Do not render HTML output for hidden fields. Closes #2410.Tom Christie
2015-01-21Make ReturnDict cachable. Closes #2360.Tom Christie
2015-01-21Allow missing fields option for inherited serializers. Closes #2388.Tom Christie
2015-01-19Merge branch 'master' of https://github.com/tomchristie/django-rest-frameworkTom Christie
2015-01-19NotImplemented -> NotImplementedErrorTom Christie
2015-01-19NotImplemented is not an exceptionAlexander Dutton
`NotImplemented` is a singleton object, not an exception. You should be raising `NotImplementedError` here instead.
2015-01-19ReturnDict and ReturnList repr as standard dict/list. Closes #2421.Tom Christie
2015-01-19Handle UUID objects in JSONEncoder. Closes #2433.Tom Christie
2015-01-19Fix timedelta JSON serialization on Python 2.6.Fabien Bochu
2015-01-14Preserve ordering on relationship drop-down choices. Closes #2408.Tom Christie
2015-01-12Merge pull request #2399 from askholme/masterTom Christie
Fix for FileUploadParser with 3.x
2015-01-12Fix error when NUM_PROXIES is greater than oneJosé Padilla
2015-01-11Fix ident format when using HTTP_X_FORWARDED_FORJosé Padilla
If NUM_PROXIES setting is set to None, HTTP_X_FORWARDED_FOR might be used as is, which might contain spaces and cause errors on cache backends like memcached.
2015-01-10Make FileUploadParser work with standard django APIAsk Holme
Output from parsers ends up in a Django MergeDict and they exists elements to be dicts - not None
2015-01-08Merge remote-tracking branch 'origin/master' into release/3.0.3Xavier Ordoquy
2015-01-08Ammend docstring to use python2/3 compatible example.Tom Christie
2015-01-08Ensure urlparse is not publically exposed in compat.py - less chance of ↵Tom Christie
accidental conflict.