python functions should not be camelCase

This commit is contained in:
j 2010-11-27 13:12:53 +01:00
commit ff9612a3f0
8 changed files with 46 additions and 45 deletions

View file

@ -24,7 +24,7 @@ from ox import stripTags
from ox.normalize import canonicalTitle, canonicalName
def getPersonSort(name):
def get_name_sort(name):
person, created = Person.objects.get_or_create(name=name)
name_sort = unicodedata.normalize('NFKD', person.name_sort)
return name_sort