names are unique
This commit is contained in:
parent
78711542f7
commit
bac32da382
1 changed files with 1 additions and 2 deletions
|
@ -15,9 +15,8 @@ def get_name_sort(name):
|
||||||
name_sort = unicodedata.normalize('NFKD', person.name_sort)
|
name_sort = unicodedata.normalize('NFKD', person.name_sort)
|
||||||
return name_sort
|
return name_sort
|
||||||
|
|
||||||
|
|
||||||
class Person(models.Model):
|
class Person(models.Model):
|
||||||
name = models.CharField(max_length=200)
|
name = models.CharField(max_length=200, unique=True)
|
||||||
name_sort = models.CharField(max_length=200)
|
name_sort = models.CharField(max_length=200)
|
||||||
|
|
||||||
#FIXME: how to deal with aliases
|
#FIXME: how to deal with aliases
|
||||||
|
|
Loading…
Reference in a new issue