From 083d10fc6e46fc59e70b571abd0df0567fd6f8a5 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Tue, 16 Jan 2018 19:07:39 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20:=20emp=C3=AAcher=20d'ajouter=202?= =?UTF-8?q?=20fois=20la=20m=C3=AAme=20collection=20(figurine/consoles)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/core/models.py | 3 +- .../migrations/0003_auto_20180116_1756.py | 31 +++++++++++++++++++ .../migrations/0011_auto_20180116_1756.py | 24 ++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 collection/figurines/migrations/0003_auto_20180116_1756.py create mode 100644 collection/games/migrations/0011_auto_20180116_1756.py diff --git a/collection/core/models.py b/collection/core/models.py index e62f89c..8490e95 100644 --- a/collection/core/models.py +++ b/collection/core/models.py @@ -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): diff --git a/collection/figurines/migrations/0003_auto_20180116_1756.py b/collection/figurines/migrations/0003_auto_20180116_1756.py new file mode 100644 index 0000000..a5a16ba --- /dev/null +++ b/collection/figurines/migrations/0003_auto_20180116_1756.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.9 on 2018-01-16 17:56 +from __future__ import unicode_literals + +from django.db import migrations +from django.db import models + + +class Migration(migrations.Migration): + + dependencies = [ + ('figurines', '0002_auto_20180115_1730'), + ] + + operations = [ + migrations.AlterModelOptions( + name='figurine', + options={'ordering': ('name', )}, ), + migrations.AlterField( + model_name='set', + name='name', + field=models.CharField( + help_text='Usual name of figurines set.', + max_length=255, + unique=True, + verbose_name='name'), ), + migrations.AlterField( + model_name='set', + name='shortname', + field=models.CharField(max_length=30, verbose_name='shortname'), ), + ] diff --git a/collection/games/migrations/0011_auto_20180116_1756.py b/collection/games/migrations/0011_auto_20180116_1756.py new file mode 100644 index 0000000..2ade063 --- /dev/null +++ b/collection/games/migrations/0011_auto_20180116_1756.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.9 on 2018-01-16 17:56 +from __future__ import unicode_literals + +from django.db import migrations +from django.db import models + + +class Migration(migrations.Migration): + + dependencies = [ + ('games', '0010_auto_20180115_1730'), + ] + + operations = [ + migrations.AlterField( + model_name='platform', + name='name', + field=models.CharField( + help_text='Most used platform name.', + max_length=255, + unique=True, + verbose_name='name'), ), + ]