This commit is contained in:
bkfox
2020-05-20 12:16:03 +02:00
parent 84483ecd3c
commit 58f9262e59
2 changed files with 3 additions and 2 deletions

View File

@ -108,6 +108,9 @@ class Page(models.Model):
self.pub_date = tz.now()
elif not self.is_published:
self.pub_date = None
if not self.cover and self.parent:
self.cover = self.parent.cover
super().save(*args, **kwargs)
def get_absolute_url(self):