mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
[3.0.x] Clarified that ValueError raised by converter.to_python() means no match unless another URL pattern matches.
Backport of 196009c72c
from master
This commit is contained in:
parent
0379da59bd
commit
b11761e3cc
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ A converter is a class that includes the following:
|
|||
string into the type that should be passed to the view function. It should
|
||||
raise ``ValueError`` if it can't convert the given value. A ``ValueError`` is
|
||||
interpreted as no match and as a consequence a 404 response is sent to the
|
||||
user.
|
||||
user unless another URL pattern matches.
|
||||
|
||||
* A ``to_url(self, value)`` method, which handles converting the Python type
|
||||
into a string to be used in the URL.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue