Hi, Wonder if anyone can help. Have following chunk in my own change_list.html template:
{% block object-tools %} <ul class="object-tools"> {% if has_add_permission %} <li> <a href="add/{% if is_popup %}?_popup=1{% endif %}" title="Add Comment" class="addlink"> {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %} </a> </li> {% endif %} {% if has_delete_permission %} <li> My thing goes here</li> </li> {% endif %} </ul> {% endblock %} Created a user that has delete permissions. Got my own ModelAdmin and have checked using the debugger that the user does indeed have delete permissions. The "def has_add_permission" fn in contrib/admin/options.py *is* being called (I've put "import pdb;pdb.set_trace()" there to check), whereas def has_delete_permission is not - and I can't work out for the life of me why not. Anyone help at all? Thanks, R -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.