update episode cover
This commit is contained in:
parent
fee668d130
commit
f8ccc79c54
|
@ -57,7 +57,7 @@ def program_post_save(sender, instance, created, *args, **kwargs):
|
|||
.delete()
|
||||
|
||||
cover_ = getattr(instance, '__initial_cover', None)
|
||||
if cover_ is None and instance.cover is not None:
|
||||
if cover_ != instance and instance.cover is not None:
|
||||
Episode.objects.parent(instance) \
|
||||
.filter(cover__isnull=True) \
|
||||
.update(cover=instance.cover)
|
||||
|
|
Loading…
Reference in New Issue
Block a user