mirror of
https://github.com/jazzband/django-authority.git
synced 2026-03-16 22:20:28 +00:00
Django 1.6 admin compatibility fix. Refs #37.
This commit is contained in:
parent
2288ccdf36
commit
bf2423b574
2 changed files with 1 additions and 3 deletions
|
|
@ -81,7 +81,6 @@ def edit_permissions(modeladmin, request, queryset):
|
|||
inline_admin_formsets.append(inline_admin_formset)
|
||||
media = media + inline_admin_formset.media
|
||||
|
||||
ordered_objects = opts.get_ordered_objects()
|
||||
if request.POST.get('post'):
|
||||
if all_valid(formsets):
|
||||
for formset in formsets:
|
||||
|
|
@ -99,7 +98,6 @@ def edit_permissions(modeladmin, request, queryset):
|
|||
'inline_admin_formsets': inline_admin_formsets,
|
||||
'app_label': app_label,
|
||||
'change': True,
|
||||
'ordered_objects': ordered_objects,
|
||||
'form_url': mark_safe(''),
|
||||
'opts': opts,
|
||||
'target_opts': queryset.model._meta,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}"/>{% endblock %}
|
||||
|
||||
{% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %}
|
||||
{% block coltype %}colM{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue