#35244: URL resolution does not work with a namespaced function reference.
-------------------------------------+-------------------------------------
     Reporter:  Willem Van Onsem     |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Core (URLs)          |                  Version:  5.0
     Severity:  Normal               |               Resolution:  duplicate
     Keywords:  urls, resolve,       |             Triage Stage:
  reverse, resolution                |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Willem Van Onsem):

 It is indeed discouraged, but the fact that `app_name` "breaks" it, is a
 bit of an "admission of weakness". Indeed, there are Django apps that
 could use reverse and plug in a view function reference. Now if one would
 use such Django app, and then later include it in `urls.py` with an
 `app_name`, the problems start occurring, so either it makes sense to
 disable passing view function references at all, or these have to span
 over the entire app.

 The patch is just some fast prototyping, I think the main problem is
 "proving" its soundness and completeness, which is of course difficult,
 given the nice Christmas tree that building the reverse dictionary has
 become :).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35244#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018dd0c2081e-5773be86-3a68-45f0-a7ff-ecbf91e7b093-000000%40eu-central-1.amazonses.com.

Reply via email to