Can not get this to do anything, installed, added to apps, followed the docs. nothing. here's my admin.py:
from import_export import resources
from import_export.admin import ImportExportModelAdmin
class EmailGroupResource(resources.ModelResource):
class Meta:
model = EmailGroup
class EmailGroupAdmin(DjangoObjectActions, ImportExportModelAdmin, admin.ModelAdmin):
resource_class = EmailGroupResource
.. rest of admin
admin.site.register(EmailGroup, EmailGroupAdmin)
Maybe i have a conflict? using Mezzanine4.0
Please help!
If you are already inherit from admin.ModelAdmin
, than using mixin would make more sense import_export.admin.ImportExportMixin
(see: https://django-import-export.readthedocs.org/en/latest/getting_started.html#admin-integration)
If buttons do not appear, it is possible that DjangoObjectActions
overrides admin template.