5👍
✅
It seems you forgot to link the resource class with you modeladmin
class ArtResource(resources.ModelResource):
class Meta:
model = Art
exclude = ('authenticate', )
class ArtAdmin(ImportExportModelAdmin):
resource_class = ArtResource
list_display = ['id', 'name', 'category', 'type', 'agent', 'authenticate', ]
search_fields = ('name', 'category', 'artist', 'id', 'authenticate', )
list_filter = ["authenticate"]
actions = [approve_art, reject_art]
Source:stackexchange.com