Jon Dufresne
7eac86688a
Remove executable bit from static assets ( #6484 )
...
These files are simply static assets and do not require an executable
bit. They are never intended to be executed as standalone scripts.
2019-03-03 18:39:08 +00:00
Carlton Gibson
94593b3a50
Introduce RemovedInDRF…Warning classes to simplify deprecations. ( #6480 )
...
Closes #6290 .
2019-03-03 09:20:45 +01:00
Jon Dufresne
a216d02ce0
Merge multiple isinstance() calls to one ( #6481 )
...
https://docs.python.org/3/library/functions.html#isinstance
> If classinfo is a tuple of type objects (or recursively, other such
> tuples), return true if object is an instance of any of the types.
2019-03-02 20:48:03 +00:00
Carlton Gibson
31bf597081
Updated note on BooleanField required kwarg generation.
...
Closes #6474 .
2019-03-01 12:48:12 +01:00
Ramon de Jezus
1dc81acb4d
Fixed a typo in pagination docs. ( #6475 )
2019-02-28 15:18:58 +01:00
Andrzej Górski
317174b163
Avoided calling distinct on annotated fields in SearchFilter. ( #6240 )
...
Fixes #6094
2019-02-25 16:59:25 +01:00
Adrien Brunet
2daf6f1341
Add negation ~ operator to permissions composition ( #6361 )
2019-02-25 15:33:40 +01:00
Xtreak
739b0a272a
Fix DeprecationWarning in tests when accessing collections.abc classes via collections ( #6473 )
2019-02-25 15:22:45 +01:00
Frédéric Massart
94fbfcb6fd
Added lazy evaluation to composed permissions. ( #6463 )
...
Refs #6402 .
2019-02-25 13:47:02 +01:00
Carlton Gibson
8a29c53226
Allowed Q objects in limit_choices_to introspection. ( #6472 )
...
Closes #6470 .
2019-02-25 10:49:29 +00:00
Charlie Hornsby
07c5c968ce
Fix DeprecationWarning when accessing collections.abc classes via collections ( #6268 )
...
* Use compat version of collections.abc.Mapping
Since the Mapping class will no longer be available to import directly
from the collections module in Python 3.8, we should use the
compatibility helper introduced in #6154 in the fields module.
* Alias and use compat version of collections.abc.MutableMapping
Since the MutableMapping class will no longer be available to import
directly from the collections module in Python 3.8, we should create an
alias for it in the compat module and use that instead.
2019-02-25 09:17:04 +01:00
Ryan P Kilby
286cf57a8d
Update filtering docs ( #6467 )
2019-02-22 10:58:01 -08:00
Carlton Gibson
d932baa646
Corrected link to ajax-form library.
...
Closes #6465 .
2019-02-22 11:11:52 +01:00
Allan Reyes
d110454d4c
Added SearchFilter.get_search_fields() hook. ( #6279 )
2019-02-19 17:18:14 +01:00
Si Feng
1ece516d2d
Adjusted field validators
to accept iterables. ( #6282 )
...
Closes 6280.
2019-02-19 16:38:20 +01:00
Carlton Gibson
6de33effd6
Doc’d requirement to implement has_object_permission() ( #6462 )
...
…when using provided permission classes.
Closes #6402 .
2019-02-19 16:18:55 +01:00
jeffrey k eliasen
eb3180173e
Made templates compatible with session-based CSRF. ( #6207 )
2019-02-19 12:15:03 +01:00
Xavier Ordoquy
1660469ed8
Merge pull request #6460 from michael-k/docs-py3-compat
...
Fix Python 3 compat in documentation
2019-02-17 22:16:35 +01:00
Michael Käufl
f9401f5ff0
Fix Python 3 compat in documentation
2019-02-16 15:47:13 +01:00
Rohit Gupta
de3929fb33
Add Python 3.7 to classifiers. ( #6458 )
2019-02-15 10:57:02 +01:00
kuter
e8b4bb1471
Added tests for generateschema management command. ( #6442 )
2019-02-14 17:51:10 +01:00
Carlton Gibson
65f5c11a5b
Document support for Django 2.2.
2019-02-14 15:57:20 +01:00
Carlton Gibson
1c5466eae7
Remove Django 2.2 from allowed failure.
2019-02-14 15:57:20 +01:00
Carlton Gibson
59fcbc6dd5
Add migration for generic relations Tag model.
2019-02-14 15:57:20 +01:00
Carlton Gibson
481ae69df3
Add migration for CustomToken test model.
...
Move authentication tests to sub-app to enable this.
2019-02-14 15:57:20 +01:00
Carlton Gibson
cb4cbb61f2
Fix search filter tests against Django 2.2.
...
Django 2.2 enables foreign key constraint checking on SQLite.
2019-02-14 15:57:20 +01:00
Carlton Gibson
606dd49227
Update tox to use Django 2.2b2.
2019-02-14 15:57:20 +01:00
Carlton Gibson
3b996c6dc2
Correct 3rd-party-packages link in issue template.
...
Closes #6457
2019-02-14 12:01:36 +01:00
Xavier Ordoquy
d23ea30d26
Merge pull request #6454 from johnthagen/patch-1
...
Fix typo in caching docs
2019-02-14 06:47:31 +01:00
johnthagen
9f66fc9a7c
Fix typo in caching docs
2019-02-13 19:00:16 -05:00
briwa
dc6b3bf42e
Fix tutorial instruction to also add pyyaml ( #6443 )
2019-02-07 09:10:11 +01:00
Tanner Prestegard
abf07e672e
Fix throttling documentation for specifying alternate caches ( #6446 )
2019-02-06 21:26:09 +01:00
carlfarrington
3c5c61f33b
fix for a couple of missing words ( #6444 )
2019-02-06 09:35:04 +00:00
jhtimmins
7c6e34c14f
Fix typo: 'what' to 'that' ( #6437 )
2019-02-02 14:49:58 +01:00
Daniel Roseman
7310411533
Updated example models to use __str__
in relations docs. ( #6433 )
2019-02-01 19:50:27 +01:00
Carlton Gibson
63e352586b
Drop testing Python 3.5 against Django master. ( #6431 )
...
Not supported in Django 3.0.
2019-01-31 17:16:43 +01:00
Asif Saif Uddin
2b62941bb4
Added testing against Django 2.2a1. ( #6422 )
...
* Added testing against Django 2.2a1.
* Allow failures for Django 2.2
2019-01-31 16:50:36 +01:00
Carlton Gibson
190f6201cb
Update Django Guardian dependency. ( #6430 )
...
* Update Django Guardian dependency.
* Skip testing Guardian on PY2. See https://github.com/django-guardian/django-guardian/issues/602
2019-01-31 15:59:19 +01:00
Carlton Gibson
bd9a799e16
Fixed SchemaView to reset renderer on exception. ( #6429 )
...
Fixes #6258 .
2019-01-31 15:28:01 +01:00
Carlton Gibson
f54a220d8f
Corrected coreapi CLI code example generation. ( #6428 )
...
Remove “> “ when rendering template.
Closes #6333 .
2019-01-31 11:36:40 +01:00
Andy Babic
87ade870c3
Added 'request_forms' block to base.html ( #6340 )
2019-01-24 16:30:46 +01:00
Carlton Gibson
9ff0092061
Added release note stub for v3.9.2.
2019-01-24 16:25:47 +01:00
Marcin Popławski
4c2af75957
Updated links to djangorestframework-api-key project. ( #6414 )
2019-01-24 16:10:11 +01:00
Carlton Gibson
8d20e10218
Deferred schema renderer creation to avoid requiring pyyaml. ( #6416 )
...
Closes #6366 .
2019-01-24 16:01:06 +01:00
Carlton Gibson
f539c0dbd1
Removed incorrect DictField docstring. ( #6417 )
...
Closes #6363 .
2019-01-24 15:18:22 +01:00
Carlton Gibson
0ac20a3d8e
Updated filtering docs to use filterset_fields
. ( #6415 )
...
Closes #6411 .
2019-01-21 21:00:54 +01:00
Steven Loria
271c4c5920
Remove sudo from .travis.yml ( #6408 )
...
Travis CI has migrated their infrastructure
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
2019-01-17 13:58:24 +00:00
Sébastien Diemer
822b85ac36
routers: invalidate _urls cache on register ( #6407 )
...
see https://github.com/encode/django-rest-framework/issues/5660
Trying to register new routes on a router after having accessed the
router `urls` attribute leads to surprising results.
The route is added without error to the router's `registry` but the urls
are not updated, because they are cached in `_urls`.
This commit invalidates the cache after each new registration.
2019-01-17 13:07:57 +00:00
Tom Christie
c049777dc7
Add missing item in 3.9.1 release notes
2019-01-16 13:39:36 +00:00
Tom Christie
453196e9c3
Version 3.9.1 ( #6405 )
...
* Version 3.9.1
* Upgrade bootstrap
* Release notes for 3.9.1
2019-01-16 13:27:35 +00:00