Example #1
0
 def response_change(self, request, obj, *args, **kwargs):
     r = super(ItemEditor, self).response_change(request, obj, *args,
                                                 **kwargs)
     itemeditor_post_save_related.send(sender=obj.__class__,
                                       instance=obj,
                                       created=False)
     return r
Example #2
0
 def save_related(self, request, form, formsets, change):
     super(ItemEditor, self).save_related(
         request, form, formsets, change)
     itemeditor_post_save_related.send(
         sender=form.instance.__class__,
         instance=form.instance,
         created=not change)
Example #3
0
 def response_change(self, request, obj, *args, **kwargs):
     r = super(ItemEditor, self).response_change(
         request, obj, *args, **kwargs)
     itemeditor_post_save_related.send(
         sender=obj.__class__, instance=obj, created=False)
     return r