omji / django-tabbed-admin

Easily add tabs to django admin forms
BSD 3-Clause "New" or "Revised" License
63 stars 68 forks source link

Django 2.0 compatibility issue with RequestContext #29

Closed hamzabawumia closed 5 years ago

hamzabawumia commented 5 years ago

Today i was trying tabbed admin with Django 2.0.7 and i got this error:

Exception Type: | TypeError context must be a dict rather than RequestContext.

Exception Location: djangostack-2.0.7-0/apps/django/lib/python3.6/site-packages/Django-2.0.7-py3.6.egg/django/template/context.py in make_context, line 274

It seems the whole issue starts from here /tabbed_admin/templatetags/tabbed_admin_tags.py in render_tab_fieldsets_inlines: at line 40 shown below:

39 context["fieldset"] = f 40 return render_to_string(template, context) 41 elif entry['type'] == 'inline':

Kindly help, i dont know how to fix this. Thanks