mysql unique limit
This commit is contained in:
parent
b66fee16d0
commit
ed3ecd95ca
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue