Job signal to update batch status

This commit is contained in:
Eliot Berriot 2018-02-21 00:03:37 +01:00
parent 8900f5581b
commit b492e133c6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27

View file

@ -461,3 +461,8 @@ class ImportJob(models.Model):
class Meta:
ordering = ('id', )
@receiver(post_save, sender=ImportJob)
def update_batch_status(sender, instance, **kwargs):
instance.batch.update_status()