use get_sort_name/get_sort_title

This commit is contained in:
j 2011-10-11 16:30:10 +02:00
commit 0b8b04234a
3 changed files with 3 additions and 4 deletions

View file

@ -28,7 +28,7 @@ class Title(models.Model):
def save(self, *args, **kwargs):
if not self.title_sort:
self.title_sort = ox.normalize.canonicalTitle(self.title)
self.title_sort = ox.get_sort_title(self.title)
self.title_sort = unicodedata.normalize('NFKD', self.title_sort)
super(Title, self).save(*args, **kwargs)