📜  post_export 信号 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:07.782000             🧑  作者: Mango

代码示例2
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)