mirror of
https://github.com/jazzband/django-authority.git
synced 2026-03-16 22:20:28 +00:00
Merge remote-tracking branch 'libraM/master'
This commit is contained in:
commit
f793207cb9
2 changed files with 1 additions and 3 deletions
|
|
@ -88,7 +88,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:
|
||||
|
|
@ -109,7 +108,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