natural key for placeholder and plugin updated

This commit is contained in:
Serghei Mihai 2014-04-01 10:41:08 +02:00
parent 87fedf536c
commit 35cad67c87
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ def title_natural_key(self):
return (self.path, )
def placeholder_natural_key(self):
return (self.slot, self.page.natural_key())
return self.page.natural_key() + (self.slot, )
def plugin_natural_key(self):
return (self.plugin_type, self.position, self.placeholder.natural_key())
return self.placeholder.natural_key() + (self.plugin_type, self.position)
Page.natural_key = page_natural_key
Title.natural_key = title_natural_key