#11462: {% url %} tag is not working with the 'AS' modifier and named URLs
--------------------------------------+-------------------------------------
          Reporter:  x13              |         Owner:  nobody
            Status:  closed           |     Milestone:        
         Component:  Template system  |       Version:  1.0   
        Resolution:  worksforme       |      Keywords:        
             Stage:  Unreviewed       |     Has_patch:  0     
        Needs_docs:  0                |   Needs_tests:  0     
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by ramiro):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => worksforme
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 What do you mean with ''it didn't work''? I tested this with Django 1.0,
 1.0.2 and trunk and it worked as expected (the alias variable evaluates to
 the correct URL for the link href). Reopen the ticket if you are willing
 to provide more details about your setup and exact failure.

 PS: I used this template fragment:

 {{{
 <ul>
 {% url en-soon as url_soon_en %}
 {% if url_soon_en %}
 <li><a href="{{ url_soon_en }}">English</a></li>
 {% endif %}
 {% url es-soon as url_soon_es %}
 {% if url_soon_es %}
 <li><a href="{{ url_soon_es }}">Spanish</a></li>
 {% endif %}
 </ul>
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11462#comment:1>
Django <http://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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to