mysql unique limit

This commit is contained in:
j 2009-08-28 11:15:07 +02:00
parent b66fee16d0
commit ed3ecd95ca
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def getAuthor(name, name_sort=''):
return a
class Author(models.Model):
name = models.CharField(blank=True, max_length=1000, unique=True)
name = models.CharField(blank=True, max_length=255, unique=True)
name_sort = models.CharField('Sort Name', blank=True, max_length=1000)
class Meta: