Commit Graph

5066 Commits

Author SHA1 Message Date
Philip Neustrom
843daa37bf Merge remote-tracking branch 'upstream/master' into paginate_kwarg_setting 2015-02-12 18:28:19 -08:00
Kevin Brown
84260b5dd6 Merge pull request #2550 from maryokhin/patch-1
Remove '.model' shortcut from viewset docs
2015-02-11 19:39:51 -05:00
Tymur Maryokhin
9d80335ac8 Remove '.model' shortcut from viewset docs. Refs #2486. Closes #2549. 2015-02-12 01:10:03 +01:00
Xavier Ordoquy
637af1fc14 Merge pull request #2540 from linovia/release/3.0.5
Release/3.0.5
2015-02-10 23:48:38 +01:00
Xavier Ordoquy
59b3fe8f39 Bumped the version to 3.0.5 2015-02-10 22:48:04 +01:00
Xavier Ordoquy
f6033cee87 Add release notes for 3.0.5. 2015-02-10 22:46:54 +01:00
Tom Christie
b999db1c46 Merge pull request #2535 from carltongibson/search-filter-duplicates
Fix duplicate results of `ManyToManyField` when using `SearchFilter`.
2015-02-10 10:43:00 +00:00
Carlton Gibson
3522b69394 Add distinct call in filter_queryset 2015-02-10 10:51:38 +01:00
Carlton Gibson
d87bb67d11 Failing test case for #1488 2015-02-10 10:50:35 +01:00
Tom Christie
7b639c0cd0 Drop django master from the build matrix.
Currently always going to be a know failure case.
We can add it back when we start to consdier Django 1.9 support.
2015-02-09 17:57:08 +00:00
Tom Christie
873fb69395 Merge pull request #2530 from tomchristie/attribute-proxying-fix
Fix misleading `AttributeError` tracebacks on `Request` objects.
2015-02-09 17:56:25 +00:00
Tom Christie
1a087c8c5b Fix .gitignore 2015-02-09 17:47:59 +00:00
Tom Christie
b2939c157d Fixes for latest version of pep8 2015-02-09 17:43:20 +00:00
Tom Christie
0669f507b3 pep8 fix 2015-02-09 17:22:13 +00:00
Tom Christie
54d82f59ed Py3 compat fix 2015-02-09 17:19:22 +00:00
Tom Christie
d13c807616 Fix misleading AttributeErrors 2015-02-09 17:02:54 +00:00
José Padilla
235b98e427 Merge pull request #2460 from mmarvick/master
Small fixes to the tutorial
2015-02-06 11:31:25 -04:00
Tom Christie
0e4d202c58 Merge pull request #2527 from linovia/feature/secured_pypi_upload
Use twine to upload to pypi.
2015-02-06 13:10:48 +00:00
Xavier Ordoquy
750d0c9f2b Add Twine to the requirements. 2015-02-06 13:57:08 +01:00
Xavier Ordoquy
238a3b507b Add Twine to the requirements. 2015-02-06 13:50:40 +01:00
Xavier Ordoquy
9dd97a0ee5 Fixed a typo. 2015-02-06 10:23:58 +01:00
Xavier Ordoquy
75ff754517 Use twine to upload to pypi. 2015-02-06 10:12:57 +01:00
Michael Marvick
5bf803b6ed Revert some of the changes made in 1-serialization.md 2015-02-05 19:42:36 -08:00
Xavier Ordoquy
24372ec778 Merge pull request #2524 from Kaptian/patch-1
Allow non-standard User models with Throttling
2015-02-05 23:02:59 +01:00
Kaptian
fffde8a63b Update throttling.py
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-05 13:27:26 -08:00
Philip Neustrom
a53377fd73 Allow custom page_kwarg keyword in settings.
Prior to this change, it wasn't possible to use a parameter other than
`page` in a querystring to paginate through result sets.  This is
usually fine, unless you have a resource with a `page` attribute (and we
do).

This is implemented as a global setting rather than a per-resource
setting because most people will want the pagination logic to be
consistent across their API, I think.

The only dilemma here is that I believe the setting `PAGINATE_BY_PARAM`
is unfortunately confusingly named.  I had, up until this point,
assumed it referred to the argument that did the pagination, rather than
the argument you provide to change the size of the pagination.  Given
the potential break in backward compatibility, I believe that changing
`PAGINATE_BY_PARAM` to a different name should probably happen in a
different PR, if at all.
2015-02-04 22:41:13 +08:00
Tom Christie
3b00824560 Merge pull request #2518 from longhotsummer/patch-1
FIX: Don't default to list in method args
2015-02-04 14:30:53 +00:00
Greg Kempe
e13d2af137 Parens around if clause 2015-02-04 16:26:23 +02:00
Tom Christie
d21617ff3b Merge pull request #2519 from Ofir-Purple/optimize-token-auth-queries
Prefetching the user object when getting the token in TokenAuthentication
2015-02-04 14:20:21 +00:00
Greg Kempe
d920683237 Use inline if 2015-02-04 16:13:30 +02:00
Ofir Ovadia
58e7bbc8ec Prefetching the user object when getting the token in TokenAuthentication.
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-04 16:08:41 +02:00
Greg Kempe
7bb5fd270d FIX: Don't default to list in method args
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-04 16:03:03 +02:00
Xavier Ordoquy
46181341d5 Merge pull request #2512 from heywbj/docs
Add django-rest-framework-recursive to docs
2015-02-04 00:13:52 +01:00
Warren Jin
76efbdddb6 docs 2015-02-03 17:18:54 -05:00
Tom Christie
33cfc2e486 Merge pull request #2509 from jamescooke/doc-fixes
Small documentation fixes
2015-02-03 13:51:03 +00:00
James Cooke
f676569661 Small documentation fixes
* Remove "you you" from viewsets API-guide
* Fix link from routers API-guide to viewsets API-guide
2015-02-03 13:43:03 +00:00
Tom Christie
67933d658e Merge pull request #2503 from tail/missing-space-error-string
Fixed missing whitespace in error string.
2015-02-03 00:19:52 +00:00
Jason Yan
4b65e9e42b Fixed missing whitespace in error string. 2015-02-02 16:14:34 -08:00
Xavier Ordoquy
0a805d979d Merge pull request #2501 from thedrow/patch-10
Fixed typos in docstrings
2015-02-02 10:00:24 +01:00
Omer Katz
8f1d42e7d5 Fixed typos in docstrings. 2015-02-02 10:50:54 +02:00
Tom Christie
6e2ea852d0 Merge pull request #2498 from dustinfarris/update-eda-link
Update link for ember-django-adapter
2015-02-01 21:17:36 +00:00
Dustin Farris
2111a99b32 Update link for ember-django-adapter 2015-02-01 16:00:24 -05:00
José Padilla
d6153a7fae Merge pull request #2497 from jpadilla/master
Fix base_template examples
2015-02-01 16:48:22 -04:00
José Padilla
9437d9b8ee Fix base_template name in example 2015-02-01 16:18:40 -04:00
José Padilla
aaa1fcd5d1 Fixes #2493 2015-02-01 16:18:02 -04:00
Tom Christie
a89e05dc73 Merge pull request #2492 from tomchristie/empty_closable_objects
_closable_objects as an empty list, not deleted
2015-01-31 14:30:00 +00:00
Tom Christie
53b29f0902 _closable_objects as an empty list, not deleted 2015-01-31 08:27:17 +00:00
Tom Christie
ee2f2d6baa Added 1.8-alpha to supported list. 2015-01-30 15:58:33 +00:00
Tom Christie
7cf9dea7f9 Docs typo. Closes #2491. 2015-01-30 11:00:29 +00:00
Tom Christie
2a43d9db87 Merge pull request #2486 from maryokhin/master
Cleanup '.model' shortcut from code and docs
2015-01-29 21:25:07 +00:00