Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

post_export signals

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #signals
ADD COMMENT
Topic
Name
4+8 =