Xavier Ordoquy
01cd09155b
Merge pull request #4721 from auvipy/pytest6
...
converted asserts of atomic requests and decorators tests to pytest
2016-11-30 11:34:02 +01:00
Asif Saifuddin Auvi
a9b6c97485
converted asserts of decorators test to pytest
2016-11-30 16:24:48 +06:00
Asif Saifuddin Auvi
504f4b44c6
converted asserts of atomic requests test to pytest
2016-11-30 16:17:30 +06:00
Asif Saifuddin Auvi
e03d88ced7
more pytest style assert ( #4719 )
2016-11-30 09:48:33 +00:00
Xavier Ordoquy
4c41f2bfea
Merge pull request #4715 from auvipy/pytest4
...
converted test asserts of generics-test to pytest
2016-11-30 07:53:58 +01:00
Asif Saifuddin Auvi
10b5f36fec
added fixes
2016-11-30 12:35:34 +06:00
Xavier Ordoquy
f2a8252660
Merge pull request #4718 from jfw/patch-4
...
typo
2016-11-30 07:35:22 +01:00
Asif Saifuddin Auvi
f5a900a404
some reverts to fix test
2016-11-30 10:01:37 +06:00
Asif Saifuddin Auvi
a5bb9825f3
attempt to fix test again
2016-11-30 09:56:22 +06:00
Jeff Fein-Worton
a5c8a8c226
typo
2016-11-29 18:00:10 -08:00
Asif Saifuddin Auvi
4a0829d6ec
attempt to fix test
2016-11-30 02:08:37 +06:00
Asif Saifuddin Auvi
27641e07b5
converted test asserts of generics-test to pytest
2016-11-30 01:13:21 +06:00
Germán Larraín
aed8387e05
docs: Fix description of DecimalField
's max_digits
( #4714 )
...
As of PR #4377 , `max_digits=None` is allowed for `DecimalField`.
2016-11-29 15:35:43 +00:00
Xavier Ordoquy
1e0988686c
Update the Python doc links to use https and point to Python 3 ( #4713 )
2016-11-29 12:27:00 +00:00
Ryan P Kilby
6498766749
Fix django deprecation warnings ( #4712 )
2016-11-29 09:49:18 +00:00
Asif Saifuddin Auvi
9f4c9691f4
converted filters tests asserts to pytest style ( #4711 )
2016-11-28 14:31:27 +00:00
Asif Saifuddin Auvi
42d6098c74
converted primary key relations test asserts to pytest ( #4709 )
2016-11-28 09:43:48 +00:00
Xavier Ordoquy
ea8fc99d6a
Merge pull request #4708 from auvipy/pytest2
...
converted generic relations assert to pytest style
2016-11-28 07:40:20 +01:00
Asif Saifuddin Auvi
cd3fd36d0e
converted generic relations assert to pytest style
2016-11-27 23:55:09 +06:00
Nik Nyby
abc62afddb
docs typo fix ( #4701 )
...
Remove unnecessary "a"
2016-11-24 09:39:18 +00:00
Nik Nyby
eaec60ae1d
docs: grammar fix - it's -> its ( #4698 )
2016-11-23 16:10:39 +00:00
Xavier Ordoquy
36552eb5fe
Merge pull request #4699 from nikolas/patch-4
...
docs: grammar fix
2016-11-23 16:19:02 +01:00
Nik Nyby
a13b8d5560
docs: grammar fix
2016-11-23 10:13:03 -05:00
Asif Saifuddin Auvi
5ec223bca0
converted validators and write_only_fields test to pytest style ( #4697 )
2016-11-23 14:05:34 +00:00
Asif Saifuddin Auvi
4b59ec27fa
convert tests asserts to pytest style ( #4696 )
2016-11-23 13:17:00 +00:00
Carlton Gibson
3e1b31bb9b
Merge pull request #4694 from auvipy/patch-1
...
update django-filter to version 1.0.0
2016-11-23 11:20:12 +01:00
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
Asif Saifuddin Auvi
1b9013ebae
update django-filter to version 1.0.0
2016-11-22 19:46:12 +06:00
Thodoris Sotiropoulos
4c2d6b9bb7
Do not ignore source when building fields dynamically
...
This commit fixes the issue when you set the keyword argument `source`
and your have not set the serializer fields explicitly. Then the
construction of field failed because there is not actually any model
field with that name.
However, you are still able to imply the name of model field by
providing the `source` keyword argument.
2016-11-17 18:51:22 +02: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