1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-05 14:43:58 +02:00

Supprime les doublons

This commit is contained in:
Med
2017-07-04 22:29:11 +02:00
parent eeb4d113b6
commit 9889e9ee50
2 changed files with 27 additions and 1 deletions

View File

@ -2,7 +2,7 @@ from django.db import models
from django.core.validators import MinValueValidator
class Auteur(models.Model):
nom = models.CharField(max_length=255)
nom = models.CharField(max_length=255, unique=True)
def __str__(self):
return self.nom
@ -30,6 +30,7 @@ class Jeu(models.Model):
('-1h', '-1h'),
('1-2h', '1-2h'),
('2-3h', '2-3h'),
('3-4h', '3-4h'),
('4h+', '4h+'),
)