8

remove all references or uses of old PersonalisablePage model

This commit is contained in:
Paul J Stevens
2017-05-31 12:52:52 +02:00
committed by Michael van Tellingen
parent 49062d36b4
commit 4e61ff0d08
6 changed files with 36 additions and 31 deletions

View File

@@ -113,14 +113,6 @@ class AbstractPersonalisablePage(models.Model):
def __str__(self):
return "{}".format(self.title)
@classmethod
def get_model(cls):
try:
cls.__subclasses__()[0]
except IndexError:
raise Exception("Unable to find non-abstract subclass for %s" %
cls.__name)
@cached_property
def has_variations(self):
"""Return a boolean indicating whether or not the personalisable page