diff options
| author | Tim Graham <timograham@gmail.com> | 2016-12-27 15:59:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-27 15:59:13 -0500 |
| commit | 51cde873d9fc8e4540f4efecbd39cfe8e770be38 (patch) | |
| tree | 6ceaf250f599a9e108f6b75b74a8f5b4e06bd08b /docs | |
| parent | 544b2ef29f0f2577912f88cf746ae0ca5877b5f8 (diff) | |
Fixed #27648 -- Deprecated (iLmsu) regex groups in url() patterns.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/internals/deprecation.txt | 3 | ||||
| -rw-r--r-- | docs/releases/1.11.txt | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 29f4479c5a..c1a1c41cd6 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -48,6 +48,9 @@ details on these changes. * The ``Model._meta.has_auto_field`` attribute will be removed. +* Support for regular expression groups with ``iLmsu#`` in ``url()`` will be + removed. + .. _deprecation-removed-in-2.0: 2.0 diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 24247f7d75..48849f3b4d 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -747,3 +747,10 @@ Miscellaneous * ``Model._meta.has_auto_field`` is deprecated in favor of checking if ``Model._meta.auto_field is not None``. + +* Using regular expression groups with ``iLmsu#`` in ``url()`` is deprecated. + The only group that's useful is ``(?i)`` for case-insensitive URLs, however, + case-insensitive URLs aren't a good practice because they create multiple + entries for search engines, for example. An alternative solution could be to + create a :data:`~django.conf.urls.handler404` that looks for uppercase + characters in the URL and redirects to a lowercase equivalent. |
