class CompanyResource(resources.ModelResource):
class Meta:
model = Company
fields = ('website', 'user', 'country', 'source', 'industry')
def after_export(self, queryset, data, *args, **kwargs):
queryset.update(exported=True)