Xavier Ordoquy
f0872a6201
Merge pull request #4695 from vinayan3/patch-1
...
Edit to the import in Setting filter backends
2016-11-23 07:47:29 +01:00
Vinay Anantharaman
8030f5b74f
Edit to the import in Setting filter backends
...
`django_filters` doesn't export `rest_framework` by default so it's required to import it.
2016-11-22 14:50:47 -08:00
Xavier Ordoquy
45e90c3398
Merge pull request #4679 from browniebroke/exceptions-docs-typo
...
Correct a small typo in exceptions documentation
2016-11-14 18:03:30 +01:00
Bruno Alla
0c02bbbfa7
Correct a small typo in exceptions documentation
2016-11-14 16:58:16 +00:00
Tom Christie
24791cb353
Invalidate any existing prefetch cache on PUT requests. ( #4668 )
2016-11-11 09:44:35 +00:00
Tom Christie
8bab7f8d58
Only apply the nested writes test to writable fields. ( #4669 )
2016-11-10 16:36:56 +00:00
Michael Barr
388cf7622c
Adds Django/Python Trove Classifiers ( #4662 )
2016-11-09 12:59:11 +00:00
Tom Christie
ea60872e9e
Version 3.5.3 [ci skip]
2016-11-07 13:38:48 +00:00
Tom Christie
8d72535be9
Fix FilterSet warnings. ( #4660 )
2016-11-07 12:55:18 +00:00
Rex Salisbury
06df61e38c
handle error when no links are found ( #4649 )
...
This is to address https://github.com/tomchristie/django-rest-raml/issues/5
The problem is that if you try to generate RAML docs when you haven't set up any views, you get the above error (min called on an empty list).
unfortunately, this PR is not very helpful since it doesn't actually surface a readable error to the user. Not sure what the best way to address this would be...
2016-11-07 11:41:10 +00:00
Angel Velasquez
ee60aaa945
Update versions of Django on tox.ini ( #4651 )
...
Bump release versions to 1.10.3, 1.9.11 and 1.8.16
More info on:
https://www.djangoproject.com/weblog/2016/nov/01/security-releases/
2016-11-07 11:37:58 +00:00
James Beith
befacfb00d
Add autofocus support for input.html templates ( #4650 )
...
This change adds support to use `'autofocus': True` in the style options and have the `autofocus` attribute included on the input field when rendered.
2016-11-07 11:34:53 +00:00
Aaron Lelevier
0b9304014d
Add documentation link for single 'field-level validation' to the Validator docs page ( #3772 ) ( #4657 )
2016-11-07 11:30:46 +00:00
pkrzyzaniak
7f437123bd
Added "drf_tweaks" to third party packages ( #4659 )
2016-11-06 22:12:52 +00:00
Carlos de la Torre
d55e176a1e
Fix documentation error: removed unused variable ( #4647 )
2016-11-02 14:03:53 +00:00
Andrzej Pragacz
45e058d7ba
Fix unhandled Http404, PermissionDenied in schema generation ( #4645 ) ( #4646 )
2016-11-02 09:04:01 +00:00
Tom Christie
2bf082a623
Version 3.5.2 [ci skip] ( #4641 )
2016-11-01 11:31:20 +00:00
Tom Christie
276ed80fd3
Support 'on'/'off' literals with BooleanField. Closes #4624 ( #4640 )
2016-11-01 11:11:34 +00:00
Kennedy Mwenja
7038571157
Enable cursor pagination of value querysets. ( #4569 )
...
To do `GROUP_BY` queries in django requires one to use `.values()`
eg this groups posts by user getting a count of posts per user.
```
Posts.objects.order_by('user').values('user').annotate(post_count=Count('post'))
```
This would produce a value queryset which serializes its result
objects as dictionaries while `CursorPagination` requires a queryset
with result objects that are model instances.
This commit enables cursor pagination for value querysets.
- had to mangle the tests a bit to test it out. They might need
some refactoring.
- tried the same for `.values_list()` but it turned out to be
trickier than I expected since you have to use tuple indexes.
2016-11-01 10:42:01 +00:00
Nicolas Delaby
97d848413e
Fix support of get_full_details() for Throttled exceptions ( #4627 )
...
Since `str` objects are immutable, appending to existing `str` creates
in fact a new `str` instance.
Thus `ErrorDetail.detail.code` attribute is lost after `str` concatenation operation.
2016-11-01 10:38:56 +00:00
Kieran Spear
98df932194
Fix FilterSet proxy ( #4620 )
2016-11-01 10:30:17 +00:00
Ryan P Kilby
d92b24a0b7
Make serializer fields import explicit ( #4628 )
2016-11-01 10:27:11 +00:00
Tom Christie
5c54b227c1
Drop redundant requests adapter ( #4639 )
2016-11-01 10:24:53 +00:00
Tom Christie
7eb6cdca00
Don't lose exception info ( #4638 )
2016-11-01 10:22:30 +00:00
Alex Kahan
895c67c9a2
Fixes #4532 ( #4636 )
2016-10-31 20:41:54 +00:00
Josep Cugat
46f837a9d1
Fix APIException full_details() typo in documentation ( #4633 )
...
APIException has a get_full_details() method but the documentation refers to full_details().
2016-10-28 12:05:32 +01:00
Ryan P Kilby
eafc9a2393
Fix is_simple_callable with variable args, kwargs ( #4622 )
2016-10-25 20:47:24 +01:00
José Padilla
1bd35ad355
Merge pull request #4617 from tuffnatty/docs-pagination-add-drf-proxy-pagination
...
Add `drf-proxy-pagination` reference to Pagination docs
2016-10-23 09:46:57 -04:00
Phil Krylov
72dc6d1d5c
Add drf-proxy-pagination
reference to Pagination docs
2016-10-23 04:36:36 +03:00
Mads Jensen
8ac524915c
added on_delete=models.CASCADE to models.ForeignKey in the documentation ( #4614 )
2016-10-22 16:37:23 +01:00
Tom Christie
3b39d2d13a
Version 3.5.1 [ci skip]
2016-10-21 17:10:38 +01:00
Tom Christie
30bf9df5d0
Fix guardian import ( #4612 )
2016-10-21 16:59:43 +01:00
Tom Christie
0fe0e1e703
Fix schema base paths ( #4611 )
2016-10-21 16:59:34 +01:00
Tom Christie
d647d37a99
Fix Accept header in tutorial. Closes #4604 . [ci skip]
2016-10-21 15:45:28 +01:00
Tom Christie
f1bdce17b5
Fix for case of ListSerializer with single item ( #4609 )
2016-10-21 15:21:23 +01:00
Lukasz Karolewski
0b346e94b1
changing order of imports ( #4601 )
...
when using with django-filter and rest_framework_swagger need to import coreapi before django-filter as django filter tries to load rest_framework.coreapi which is undefined at this point
2016-10-21 15:00:25 +01:00
Tom Christie
e3686aca93
Don't use bare 'raise'. [ci skip]
2016-10-21 14:47:26 +01:00
Tom Christie
856f086ce3
Remove broken wheel check in setup.py [ci skip]
2016-10-21 14:42:42 +01:00
Maxime Lorant
1aa6dff0b5
Fix code formatting missing in 3.5 announcement ( #4597 )
...
... in section ModelSerializer 'fields' and 'exclude'
2016-10-20 16:47:59 +01:00
Tom Christie
c6f1686571
Remove erronous file [ci skip]
2016-10-20 16:26:56 +01:00
Tom Christie
3b9afb571b
Version 3.5.0 ( #4596 )
2016-10-20 16:25:40 +01:00
Tom Christie
2395fb5386
Deprecate DjangoFilter backend ( #4593 )
...
Deprecate the built-in `rest_framework.filters.DjangoFilterBackend` in favour of the third-party `django_filters.rest_framework.DjangoFilterBackend`.
2016-10-20 10:47:09 +01:00
Tom Christie
3f6004c5a9
Use pk for URL conf and views. ( #4592 )
2016-10-20 09:42:40 +01:00
Xavier Ordoquy
f9cf237e0b
Merge pull request #4590 from zwernberg/patch-1
...
Fixed minor sentence in Filter.py filter_queryset() Comment
2016-10-19 09:01:42 +02:00
Zach Wernberg
fcff16c5c6
minor typo
2016-10-18 23:14:55 -05:00
Fa773N M0nK
d5e63d2d7f
Reflect that '@detail_route' responds to GET only by default. ( #4582 )
2016-10-18 11:06:04 +01:00
Alex Poleha
a83997e1ed
Removed incorrect line from generic-views.md ( #4583 )
2016-10-14 11:29:48 +01:00
Akshay Sharma
cca9792ae7
contributing.md django fix. ( #4581 )
...
* installation for django added in requirements.txt
* added line to install django first in contributing.md
* added line to install django first in contributing.md and CONTRIBUTING.md
2016-10-14 11:20:09 +01:00
Tom Christie
de08f28a91
Test one to one with inheritance ( #4575 )
2016-10-13 14:21:23 +01:00
Tom Christie
8d0a91b002
Fix 3674 ( #4571 )
...
Handle ModelSerializer case for relationships to models with custom pk.
2016-10-13 12:43:43 +01:00