Job signal to update batch status
This commit is contained in:
parent
8900f5581b
commit
b492e133c6
|
@ -461,3 +461,8 @@ class ImportJob(models.Model):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ('id', )
|
ordering = ('id', )
|
||||||
|
|
||||||
|
|
||||||
|
@receiver(post_save, sender=ImportJob)
|
||||||
|
def update_batch_status(sender, instance, **kwargs):
|
||||||
|
instance.batch.update_status()
|
||||||
|
|
Loading…
Reference in New Issue