use get_sort_name/get_sort_title
This commit is contained in:
parent
bb17fef613
commit
0b8b04234a
3 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue