#5408: Url tag first argument should be able to be a context variable
-----------------------------------------------+----------------------------
Reporter: Øyvind Saltvik <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component: Uncategorized
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
-----------------------------------------------+----------------------------
If the first view/name argument to the url tag used a context var it would
be easier to reuse in inculded templates
I have two views that takes the same kwargs i could do
{{{
{% with "someview" as myview %}
{% url myview slug=object.slug %}
{% endwith %}
}}}
Instead of writing the same code twice.
So:
{{{
{% url "someview" slug=object.slug %}
{% url myview slug=object.slug %}
}}}
Would mean the same thing
--
Ticket URL: <http://code.djangoproject.com/ticket/5408>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---