Skip to content
Snippets Groups Projects
Verified Commit b492e133 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Job signal to update batch status

parent 8900f558
No related branches found
No related tags found
No related merge requests found
...@@ -461,3 +461,8 @@ class ImportJob(models.Model): ...@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment