Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[per-object-permissions] Corrected incorrect import in row_level_perm…

…_manipulator and made some format changes to the row level perm template

git-svn-id: http://code.djangoproject.com/svn/django/branches/per-object-permissions@3586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 77eda0234e59ad009b5922d770e8b10a4125e80e 1 parent dc3c4db
Christopher Long authored
View
1  django/contrib/admin/row_level_perm_manipulator.py
@@ -3,7 +3,6 @@
from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.contrib.auth.models import User, Group, Permission, RowLevelPermission
from django.db.models import manipulators
-from auth import utils
class ChangeRLPManipulator(forms.Manipulator):
def __init__(self, ct=None):
View
8 django/contrib/admin/templates/admin/row_level_permission.html
@@ -49,6 +49,7 @@
<h2>{% trans "Current Permissions" %}</h2>
<table id="current-rlpTable">
+{% if rlp_form_list %}
<tr class="header">
<th id="select_header"></th>
<th id="owner_header">
@@ -65,7 +66,6 @@
</th>
</tr>
<TBODY>
-{% if rlp_form_list %}
{% load row_level_permission %}
{% for o in rlp_form_list %}
<tr id="editRLP-{{ o.rlp.id }}">
@@ -106,8 +106,8 @@
</form>
</td>
</tr>
+</TBODY>
+</table>
{% else %}
-<tr><td colspan=4><em>No row level permissions</em></td></tr>
+<em>{% trans 'No row level permissions'%}</em>
{% endif %}
-</TBODY>
-</table>
Please sign in to comment.
Something went wrong with that request. Please try again.