Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[per-object-permissions] Latest revision showed "Edit Row Level Permi…

…ssions" 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
  • Loading branch information...
commit ea249260dc5bd6ae29e6c80e7212948f4997c79b 1 parent 5ea24f0
authored September 25, 2006
2  django/contrib/admin/templates/admin/change_form.html
@@ -18,7 +18,7 @@
18 18
 {% block content %}<div id="content-main">
19 19
 {% if change %}{% if not is_popup %}
20 20
   <ul class="object-tools"><li><a href="history/" class="historylink">{% trans "History" %}</a></li>
21  
-  {% 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 %}
  21
+  {% 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 %}
22 22
   {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
23 23
   </ul>
24 24
 {% endif %}{% endif %}

0 notes on commit ea24926

Please sign in to comment.
Something went wrong with that request. Please try again.