#35090: Enforce uniqueness on custom path converters
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Core (URLs) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Adam Johnson):
> If someone registers converters with the same name as builtin
converters, they will get what they deserve. What if they do it on
purpose?
Even if done on purpose, users can break URLs in other parts of their
project or packages unwittingly. If you need a modified `int` converter,
for example, there’s little harm in requiring it to have a different name,
but potential harm in allowing silent replacement.
--
Ticket URL: <https://code.djangoproject.com/ticket/35090#comment:5>
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/0107018ce5ab5db3-f7c5d39c-986d-406f-8a80-b75b7dc6ce5e-000000%40eu-central-1.amazonses.com.