From f448b56236ccdf6e7a20e880fac67f8a3c0fc00e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 16 Oct 2017 13:20:49 +0200 Subject: Town unique condition: numero_insee + year (refs #3753) --- .../migrations/0017_auto_20171016_1320.py | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ishtar_common/migrations/0017_auto_20171016_1320.py (limited to 'ishtar_common/migrations') diff --git a/ishtar_common/migrations/0017_auto_20171016_1320.py b/ishtar_common/migrations/0017_auto_20171016_1320.py new file mode 100644 index 000000000..a48b36ce7 --- /dev/null +++ b/ishtar_common/migrations/0017_auto_20171016_1320.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2017-10-16 13:20 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ishtar_common', '0016_auto_20171016_1104'), + ] + + operations = [ + migrations.AlterField( + model_name='town', + name='numero_insee', + field=models.CharField(max_length=6, verbose_name='Num\xe9ro INSEE'), + ), + migrations.AlterField( + model_name='town', + name='year', + field=models.IntegerField(blank=True, help_text='Filling this field is relevant to distinguish old towns to new towns.', null=True, verbose_name='Year of creation'), + ), + migrations.AlterUniqueTogether( + name='town', + unique_together=set([('numero_insee', 'year')]), + ), + ] -- cgit v1.2.3