mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:39:16 +02:00
Job signal to update batch status
This commit is contained in:
parent
8900f5581b
commit
b492e133c6
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue