#30995: Feature/docs: how should url converters decline to match for a named
route?
-------------------------------------+-------------------------------------
Reporter: Jack Cushman | Owner: nobody
Type: New feature | Status: new
Component: Core (URLs) | Version: master
Severity: Normal | Resolution:
Keywords: reverse, urls, | Triage Stage: Accepted
converter |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* version: 2.2 => master
* easy: 1 => 0
* stage: Unreviewed => Accepted
Comment:
OK, good. You're right about the number of args and keyword arguments
case. Super. Sorry for missing that.
(Is your second "Resolution based on values" example right? It should be
**number** of positional args, rather then type, no? Doesn't matter.)
The issue here is that in your case the kwarg is `obj` both times. So
reverse can't currently pick it up. Fine.
Then, yes, your suggestion to raise a `ValueError` seems plausible enough.
Want to take that on?
(I've unchecked "Easy pickings" as I think there's probably more in this
than that entails.)
--
Ticket URL: <https://code.djangoproject.com/ticket/30995#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.5e42d93c6f6aeb75669ad652ace6b92f%40djangoproject.com.