omji / django-tabbed-admin

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

Not working without grappelli #7

Closed erikw closed 7 years ago

erikw commented 7 years ago

If you don't have grappelli installed, then there will be a KeyError. In tabbed_admin/admin.py there is

    def media(self):
        css = {}

        if 'grappelli' in settings.INSTALLED_APPS:
            css['all'] = ("tabbed_admin/css/tabbed_grappelli_admin.css", )

        if USE_JQUERY_UI:
            css['all'] = \
                ("tabbed_admin/css/jquery-ui-1.11.4.min.css",
"tabbed_admin/css/tabbed_admin.css", ) + css['all']

On the last line we try to fetch css['all'] which does not exist unless we entered the if-grappelli.