It was as easy as {% if perms.shop %}<li><a href="/admin/shop/order">Orders</a></ li>{% endif %}
On Sep 19, 9:27 am, Frantisek Malina <[EMAIL PROTECTED]> wrote: > <ul class="tabnav" id="mainnav"> > {% if user has permission to change shop orders %}<li><a href="/admin/ > shop/order">Orders</a></li>{% endif %} > <li><a href="/admin/product/product">Products</a></li> > <li>...</li> > </ul> > > How to write the above in the template without touching admin py > files? > > Thank you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---