Navigation Menu

Skip to content

Commit

Permalink
[per-object-permissions] Minor fixes to admin RLP interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Long committed Aug 19, 2006
1 parent 741df7b commit 23cb1f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -6,7 +6,6 @@
{% for js in javascript_imports %}{% include_admin_script js %}{% endfor %}
{% endblock %}
{% block stylesheet %}{% admin_media_prefix %}css/forms.css{% endblock %}
{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
{% block userlinks %}<a href="../../../../doc/">{% trans 'Documentation' %}</a> / <a href="../../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
{% block breadcrumbs %}
Expand Down Expand Up @@ -128,8 +127,7 @@ <h2>{% trans "Current Permissions" %}</h2>
<tr align="right">
<td colspan="5">
Commands:
<a href="javascript:row_level_permission.apply_selected();">Apply Selected</a> |
<a href="javascript:alert('Not yet working');" class="deletelink">Delete Selected</a>
<a href="javascript:row_level_permission.apply_selected();">Apply Selected</a>
</td>
</tr>
{% if is_paginated %}
Expand Down
1 change: 1 addition & 0 deletions django/contrib/admin/templatetags/row_level_permission.py
Expand Up @@ -34,6 +34,7 @@ def objref(parser, token):
tok = "object"
return objref_class(tok)

#From: http://code.djangoproject.com/wiki/PaginatorTag
def paginator(context, adjacent_pages=2):
"""Adds pagination context variables for first, adjacent and next page links
in addition to those already populated by the object_list generic view."""
Expand Down

0 comments on commit 23cb1f0

Please sign in to comment.