7

post rebase fixes

This commit is contained in:
Paul J Stevens
2017-05-31 15:49:17 +02:00
committed by Michael van Tellingen
parent ebef7f8785
commit 1b73119766
4 changed files with 6 additions and 14 deletions

View File

@@ -150,10 +150,7 @@ class PersonalisablePageMixin(models.Model):
'is_segmented': True,
}
try:
return Page.objects.get(slug=slug, parent=self.parent).specific
except Page.DoesNotExist:
return self.copy(update_attrs=update_attrs, copy_revisions=False)
return self.copy(update_attrs=update_attrs, copy_revisions=False)
def variants_for_segments(self, segments):
return self.__class__.objects.filter(