2
Apparently, I needed to RTFM…I found the answer in the docs.
Assigning resource_class
within the UserAdmin
did the trick:
class UserAdmin(ExportMixin, UserAdmin):
resource_class = UserResource
pass
Huzzah.
0
You can use
exclude = ('abc','def', 'ijk')
Assume you want to export only ‘first_name’ & ‘last_name’. Then,
class UserResource(resources.ModelResource):
class Meta:
model = User
fields = ('first_name', 'last_name', 'email')
exclude = ('email')
- [Answered ]-Error while initializing rest framework urls
- [Answered ]-Django-Compressor throws UncompressableFileError with django-storages using amazonaws and heroku
Source:stackexchange.com