diff options
author | Christopher Long <indirecthit@gmail.com> | 2006-09-25 21:06:35 +0000 |
---|---|---|
committer | Christopher Long <indirecthit@gmail.com> | 2006-09-25 21:06:35 +0000 |
commit | ea249260dc5bd6ae29e6c80e7212948f4997c79b (patch) | |
tree | e63f4ebc1cdbb91f3f7a9d33fd18162f331e7362 | |
parent | 5ea24f0c141a90f1e9a61ca7a8397cc28566623f (diff) | |
download | django-ea249260dc5bd6ae29e6c80e7212948f4997c79b.tar.gz |
[per-object-permissions] Latest revision showed "Edit Row Level Permissions" for all objects in admin interface (not just those for which it is enabled), this revision fixes this bug
git-svn-id: http://code.djangoproject.com/svn/django/branches/per-object-permissions@3843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r-- | django/contrib/admin/templates/admin/change_form.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html index 4041cb963e..02d05f9ad5 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -18,7 +18,7 @@ {% block content %}<div id="content-main"> {% if change %}{% if not is_popup %} <ul class="object-tools"><li><a href="history/" class="historylink">{% trans "History" %}</a></li> - {% if has_row_level_permissions and has_row_level_permissions %}<li><a href="row_level_permissions/" class="rowlevelpermissions">{% trans "Edit Row Level Permissions" %}</a></li>{% endif %} + {% if object_has_row_level_permissions and has_row_level_permissions %}<li><a href="row_level_permissions/" class="rowlevelpermissions">{% trans "Edit Row Level Permissions" %}</a></li>{% endif %} {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%} </ul> {% endif %}{% endif %} |