From f8ccc79c54fb59ff2c088e11f529755efff3aec6 Mon Sep 17 00:00:00 2001 From: bkfox Date: Fri, 12 Jun 2020 14:32:53 +0200 Subject: [PATCH] update episode cover --- aircox/models/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aircox/models/signals.py b/aircox/models/signals.py index 9209672..a036b6c 100755 --- a/aircox/models/signals.py +++ b/aircox/models/signals.py @@ -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)