[3.0.x] Clarified that ValueError raised by converter.to_python() means no match unless another URL pattern matches.
Backport of 196009c72c7144f25bc5e4029ef519db0190bb89 from master
This commit is contained in:
parent
0379da59bd
commit
b11761e3cc
@ -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
|
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
|
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
|
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
|
* A ``to_url(self, value)`` method, which handles converting the Python type
|
||||||
into a string to be used in the URL.
|
into a string to be used in the URL.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user