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
1 changed files with 5 additions and 0 deletions

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()