Here it is:

{% ifequal user.username 'admin' %}
  {% submit_row %}
{% else %}
  {% if original.admin %}
    {% for a in original.admin.all %}
      {% ifequal user.username a.user.username %}
        {% submit_row %}
      {% endifequal %}
    {% endfor %}
  {% endif %}
{% endifequal %}

Maybe I need a more generic way to test if the current user has admin
privilege,
but I can live with that for now.

HTH,

Olivier.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to