📅  最后修改于: 2022-03-11 14:55:07.782000             🧑  作者: Mango
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)