1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

[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
This commit is contained in:
Christopher Long 2006-08-14 23:19:52 +00:00
parent dc3c4db114
commit 77eda0234e
2 changed files with 5 additions and 6 deletions

View File

@ -3,7 +3,6 @@ from django.contrib.contenttypes.models import ContentType
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 File

@ -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>
{% else %}
<tr><td colspan=4><em>No row level permissions</em></td></tr>
{% endif %}
</TBODY>
</table>
</table>
{% else %}
<em>{% trans 'No row level permissions'%}</em>
{% endif %}