mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09: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:
parent
dc3c4db114
commit
77eda0234e
@ -3,7 +3,6 @@ from django.contrib.contenttypes.models import ContentType
|
|||||||
from django.http import Http404, HttpResponse, HttpResponseRedirect
|
from django.http import Http404, HttpResponse, HttpResponseRedirect
|
||||||
from django.contrib.auth.models import User, Group, Permission, RowLevelPermission
|
from django.contrib.auth.models import User, Group, Permission, RowLevelPermission
|
||||||
from django.db.models import manipulators
|
from django.db.models import manipulators
|
||||||
from auth import utils
|
|
||||||
|
|
||||||
class ChangeRLPManipulator(forms.Manipulator):
|
class ChangeRLPManipulator(forms.Manipulator):
|
||||||
def __init__(self, ct=None):
|
def __init__(self, ct=None):
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
<h2>{% trans "Current Permissions" %}</h2>
|
<h2>{% trans "Current Permissions" %}</h2>
|
||||||
<table id="current-rlpTable">
|
<table id="current-rlpTable">
|
||||||
|
{% if rlp_form_list %}
|
||||||
<tr class="header">
|
<tr class="header">
|
||||||
<th id="select_header"></th>
|
<th id="select_header"></th>
|
||||||
<th id="owner_header">
|
<th id="owner_header">
|
||||||
@ -65,7 +66,6 @@
|
|||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<TBODY>
|
<TBODY>
|
||||||
{% if rlp_form_list %}
|
|
||||||
{% load row_level_permission %}
|
{% load row_level_permission %}
|
||||||
{% for o in rlp_form_list %}
|
{% for o in rlp_form_list %}
|
||||||
<tr id="editRLP-{{ o.rlp.id }}">
|
<tr id="editRLP-{{ o.rlp.id }}">
|
||||||
@ -106,8 +106,8 @@
|
|||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
|
||||||
<tr><td colspan=4><em>No row level permissions</em></td></tr>
|
|
||||||
{% endif %}
|
|
||||||
</TBODY>
|
</TBODY>
|
||||||
</table>
|
</table>
|
||||||
|
{% else %}
|
||||||
|
<em>{% trans 'No row level permissions'%}</em>
|
||||||
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user