mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #35090 -- Deprecated registering URL converters with the same name.
This commit is contained in:
committed by
Mariusz Felisiak
parent
50e95ad536
commit
6e1ece7ed5
@@ -74,6 +74,9 @@ details on these changes.
|
||||
* The setter for ``django.contrib.gis.gdal.OGRGeometry.coord_dim`` will be
|
||||
removed.
|
||||
|
||||
* ``django.urls.register_converter()`` will no longer allow overriding existing
|
||||
converters.
|
||||
|
||||
.. _deprecation-removed-in-5.1:
|
||||
|
||||
5.1
|
||||
|
||||
@@ -120,6 +120,10 @@ The ``converter`` argument is a converter class, and ``type_name`` is the
|
||||
converter name to use in path patterns. See
|
||||
:ref:`registering-custom-path-converters` for an example.
|
||||
|
||||
.. deprecated:: 5.1
|
||||
|
||||
Overriding existing converters is deprecated.
|
||||
|
||||
==================================================
|
||||
``django.conf.urls`` functions for use in URLconfs
|
||||
==================================================
|
||||
|
||||
@@ -419,6 +419,9 @@ Miscellaneous
|
||||
* Setting ``django.contrib.gis.gdal.OGRGeometry.coord_dim`` is deprecated. Use
|
||||
:meth:`~django.contrib.gis.gdal.OGRGeometry.set_3d` instead.
|
||||
|
||||
* Overriding existing converters with ``django.urls.register_converter()`` is
|
||||
deprecated.
|
||||
|
||||
Features removed in 5.1
|
||||
=======================
|
||||
|
||||
|
||||
@@ -183,6 +183,11 @@ Register custom converter classes in your URLconf using
|
||||
...,
|
||||
]
|
||||
|
||||
.. deprecated:: 5.1
|
||||
|
||||
Overriding existing converters with ``django.urls.register_converter()`` is
|
||||
deprecated.
|
||||
|
||||
Using regular expressions
|
||||
=========================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user