#27569: Resolve reverse url with named groups regular expression to sprintf 
output
formatters not specifying kwargs key / value pairs.
---------------------------------+-----------------------------------------
     Reporter:  Dmitriy Sintsov  |                    Owner:  nobody
         Type:  New feature      |                   Status:  closed
    Component:  Core (URLs)      |                  Version:  1.10
     Severity:  Normal           |               Resolution:  fixed
     Keywords:  reverse url      |             Triage Stage:  Someday/Maybe
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+-----------------------------------------
Changes (by Dmitriy Sintsov):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Thank you for providing the link to django-js-reverse pluggable app, now I
 was able to fix hackish way of reverse urls with regex named parameters
 into sprintf formatters via much cleaner and more compatible way:

 https://github.com/Dmitri-Sintsov/django-jinja-
 knockout/commit/ac39fd0f3f37bb8ef5ce85a571a537ed3708b21d

 The only thing I am unsure about is how the code is valid to different
 namespaces, however I know that namespaces are rarely used in Django urls.

 You asked why do I need this - it's because urls with different named
 parameters (url kwargs) values has to be constructed in Javascript at
 client-side for various AJAX calls to Django class-based views and I do
 not want to use hard-coded urls at client-side.

--
Ticket URL: <https://code.djangoproject.com/ticket/27569#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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.09640ac32d71663f1da64e5129f12021%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to