path's natural key computation updated
This commit is contained in:
parent
9ab73c3132
commit
b1c47a1c49
|
@ -73,7 +73,9 @@ class Command(BaseCommand):
|
|||
def handle(self, *args, **options):
|
||||
|
||||
def page_natural_key(self):
|
||||
return (self.get_path(options['lang']), )
|
||||
path = self.get_path(options['lang'])
|
||||
if path:
|
||||
return (path, )
|
||||
|
||||
Page.natural_key = page_natural_key
|
||||
|
||||
|
|
Reference in New Issue