django-rest-framework/rest_framework
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
..
authtoken Drop Django 1.10 support (#5657) 2018-07-06 12:14:31 +02:00
locale Version 3.7.4 Release (#5650) 2017-12-20 15:28:31 +01:00
management Add OpenAPIRenderer and generate_schema management command. (#6229) 2018-10-03 15:28:04 +01:00
schemas Fix typo in schemas (#6332) 2018-11-26 10:14:59 -08:00
static/rest_framework Version 3.9.1 (#6405) 2019-01-16 13:27:35 +00:00
templates/rest_framework Fix XSS caused by disabled autoescaping in the default DRF Browsable API view templates (#6330) 2019-01-16 12:36:25 +00:00
templatetags Fix XSS caused by disabled autoescaping in the default DRF Browsable API view templates (#6330) 2019-01-16 12:36:25 +00:00
utils Fix #1811: take limit_choices_to into account with FK (#6371) 2019-01-08 13:49:47 +00:00
__init__.py Version 3.9.1 (#6405) 2019-01-16 13:27:35 +00:00
apps.py Make DEFAULT_PAGINATION_CLASS None by default. (#5170) 2017-09-25 15:36:30 +02:00
authentication.py Fix CSRF cookie check failure when using session auth with django 1.11.6+ (#6113) 2018-08-07 08:18:56 +01:00
checks.py Clarify pagination system check (#5524) 2017-10-23 12:31:59 +02:00
compat.py compat: (py2) urlparse = urllib.parse (py3) (#6262) 2019-01-08 12:03:02 +00:00
decorators.py Version 3.9 (#6247) 2018-10-18 10:38:46 +01:00
documentation.py Allowed customising API documentation code samples (#5752) 2018-01-25 09:39:03 +01:00
exceptions.py Allow hashing of ErrorDetail to fix #5919 (#5932) 2018-04-20 15:32:37 +02:00
fields.py Prohibit null characters in CharField by default (#6073) 2018-10-02 16:54:15 +02:00
filters.py Deprecate DjangoObjectPermissionsFilter (#6075) 2018-10-02 16:34:25 +02:00
generics.py Add ValidationError to except in get_object_or_404 for django 1.11 2017-05-05 21:17:12 -04:00
metadata.py Don't show hidden fields in metadata (#5854) 2018-03-23 22:47:10 +00:00
mixins.py Ensure Location header is strictly a 'str', not subclass. Closes #5541 (#5544) 2017-10-30 13:08:52 +00:00
negotiation.py Fixed various typos (#4366) 2016-08-08 09:32:22 +01:00
pagination.py Prefer https:// for URLs when available throughout project (#6208) 2018-10-02 08:28:58 +02:00
parsers.py Upgrade isort (#5817) 2018-02-14 20:12:14 +00:00
permissions.py Fix composable permissions 2018-11-27 15:29:44 +01:00
relations.py Only catch TypeError/ValueError for object lookups (#6028) 2018-07-06 12:18:17 +02:00
renderers.py compat: (py2) urlparse = urllib.parse (py3) (#6262) 2019-01-08 12:03:02 +00:00
request.py Prefer io.BytesIO over six; available on all supported Pythons (#6168) 2018-09-09 11:53:41 +01:00
response.py Drop unnecessary TODO notes. 2017-09-14 09:44:59 +01:00
reverse.py Upgrade isort (#5817) 2018-02-14 20:12:14 +00:00
routers.py routers: invalidate _urls cache on register (#6407) 2019-01-17 13:07:57 +00:00
serializers.py Allow run_validators() to handle non-dict types. (#6365) 2019-01-08 11:39:30 +00:00
settings.py Prefer https:// for URLs when available throughout project (#6208) 2018-10-02 08:28:58 +02:00
status.py Prefer https protocol for links in docs when available 2018-01-15 15:15:21 +01:00
test.py Upgrade isort (#5817) 2018-02-14 20:12:14 +00:00
throttling.py Fix typo in docstring (#5678) 2017-12-19 08:45:33 +01:00
urlpatterns.py Fix format_suffix_patterns behavior with Django 2 path() routes (#5691) 2017-12-20 13:17:54 +01:00
urls.py Drop Django 1.10 support (#5657) 2018-07-06 12:14:31 +02:00
validators.py Fix whitespace in imports 2017-11-25 21:10:30 -05:00
versioning.py Use Default Version in URLPathVersioning if 'version' Didn't Specified by Client (#6380) 2019-01-08 11:34:54 +00:00
views.py Fix action support for ViewSet suffixes (#6081) 2018-10-02 16:22:21 +02:00
viewsets.py Fix action support for ViewSet suffixes (#6081) 2018-10-02 16:22:21 +02:00