Open
Description
Here is my solution how to make this project support Django 2.0 and newer.
Go to the super_inlines\templatetags\super_inlines.py and replace all from this file by this code:
from __future__ import unicode_literals
from django.template import Library
from ..admin import SuperInlineModelAdmin
register = Library()
register_tag = register.simple_tag
@register_tag(takes_context=True)
def get_sub_inline_formsets(context, inline, original, index, is_template):
if not isinstance(inline, SuperInlineModelAdmin):
return ()
request = context['request']
formsets, inline_instances = inline._create_formsets(
request, obj=original, change=original is not None, index=index,
is_template=is_template)
return inline.get_inline_formsets(request, formsets, inline_instances,
obj=original)
Metadata
Metadata
Assignees
Labels
No labels