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:
@ -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+'),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user