mysql unique limit

This commit is contained in:
j 2009-08-28 11:15:07 +02:00
parent b66fee16d0
commit ed3ecd95ca

View file

@ -19,7 +19,7 @@ def getAuthor(name, name_sort=''):
return a return a
class Author(models.Model): 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) name_sort = models.CharField('Sort Name', blank=True, max_length=1000)
class Meta: class Meta: