Beispiel #1
0
    def delete_model(self, request, obj):
        sku_id = obj.sku.id
        obj.delete()

        from celery_tasks.html.tasks import generate_static_list_html, generate_static_search_html
        generate_static_list_html.delay()
        generate_static_search_html.delay()
Beispiel #2
0
 def save_model(self, request, obj, form, change):
     obj.save()
     generate_static_list_html.delay()
Beispiel #3
0
 def delete_model(self, request, obj):
     obj.delete()
     generate_static_list_html.delay()
Beispiel #4
0
 def save_model(self, request, obj, form, change):
     obj.save()
     from celery_tasks.html.tasks import generate_static_list_html
     generate_static_list_html.delay()
Beispiel #5
0
 def delete_model(self, request, obj):
     obj.delete()
     from celery_tasks.html.tasks import generate_static_list_html
     generate_static_list_html.delay()