forked from rc/aircox
fix issue #11
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user