Merge remote-tracking branch 'libraM/master'

This commit is contained in:
Jannis Leidel 2020-02-07 11:10:21 +01:00
commit f793207cb9
No known key found for this signature in database
GPG key ID: C795956FB489DCA9
2 changed files with 1 additions and 3 deletions

View file

@ -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,

View file

@ -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 %}