Author: clong
Date: 2006-08-14 18:19:52 -0500 (Mon, 14 Aug 2006)
New Revision: 3586
Modified:
django/branches/per-object-permissions/django/contrib/admin/row_level_perm_manipulator.py
django/branches/per-object-permissions/django/contrib/admin/templates/admin/row_level_permission.html
Log:
[per-object-permissions] Corrected incorrect import in
row_level_perm_manipulator and made some format changes to the row level perm
template
Modified:
django/branches/per-object-permissions/django/contrib/admin/row_level_perm_manipulator.py
===================================================================
---
django/branches/per-object-permissions/django/contrib/admin/row_level_perm_manipulator.py
2006-08-14 23:07:43 UTC (rev 3585)
+++
django/branches/per-object-permissions/django/contrib/admin/row_level_perm_manipulator.py
2006-08-14 23:19:52 UTC (rev 3586)
@@ -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):
Modified:
django/branches/per-object-permissions/django/contrib/admin/templates/admin/row_level_permission.html
===================================================================
---
django/branches/per-object-permissions/django/contrib/admin/templates/admin/row_level_permission.html
2006-08-14 23:07:43 UTC (rev 3585)
+++
django/branches/per-object-permissions/django/contrib/admin/templates/admin/row_level_permission.html
2006-08-14 23:19:52 UTC (rev 3586)
@@ -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>
\ No newline at end of file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---