Correction : empêcher d'ajouter 2 fois la même collection (figurine/consoles)
This commit is contained in:
@ -5,7 +5,8 @@ from django.utils.translation import ugettext as _
|
||||
|
||||
|
||||
class Collection(models.Model):
|
||||
name = models.CharField(max_length=255, verbose_name=_('name'))
|
||||
name = models.CharField(
|
||||
max_length=255, verbose_name=_('name'), unique=True)
|
||||
shortname = models.CharField(max_length=30, verbose_name=_('shortname'))
|
||||
|
||||
def __str__(self):
|
||||
|
Reference in New Issue
Block a user