path's natural key computation updated

This commit is contained in:
Serghei Mihai 2014-04-02 09:20:15 +02:00
parent 9ab73c3132
commit b1c47a1c49
1 changed files with 3 additions and 1 deletions

View File

@ -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