Commit 9889e9ee authored by Mediatek's avatar Mediatek

Supprime les doublons

parent eeb4d113
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-04 18:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('media', '0007_auto_20170704_0138'),
]
operations = [
migrations.AlterField(
model_name='auteur',
name='nom',
field=models.CharField(max_length=255, unique=True),
),
migrations.AlterField(
model_name='jeu',
name='duree',
field=models.CharField(choices=[('-1h', '-1h'), ('1-2h', '1-2h'), ('2-3h', '2-3h'), ('3-4h', '3-4h'), ('4h+', '4h+')], max_length=255),
),
]
......@@ -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+'),
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment