diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-26 10:49:06 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-26 10:49:06 +0200 |
commit | 82933b317bc37c76a07670cf5b898516d306495c (patch) | |
tree | 5e87c13fbfb56434cd8e7be38a90804ceacf861d /ishtar_common | |
parent | c8e1a5f1de022a7f700df28c2ec9b249ac363719 (diff) | |
download | Ishtar-82933b317bc37c76a07670cf5b898516d306495c.tar.bz2 Ishtar-82933b317bc37c76a07670cf5b898516d306495c.zip |
Importer types: make name and slug non nullable
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/migrations/0012_auto_20170926_1048.py | 27 | ||||
-rw-r--r-- | ishtar_common/models_imports.py | 6 |
2 files changed, 29 insertions, 4 deletions
diff --git a/ishtar_common/migrations/0012_auto_20170926_1048.py b/ishtar_common/migrations/0012_auto_20170926_1048.py new file mode 100644 index 000000000..598e66112 --- /dev/null +++ b/ishtar_common/migrations/0012_auto_20170926_1048.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2017-09-26 10:48 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ishtar_common', '0011_auto_20170918_1913'), + ] + + operations = [ + migrations.AlterField( + model_name='importertype', + name='name', + field=models.CharField(default='To be changed', max_length=200, verbose_name='Name'), + preserve_default=False, + ), + migrations.AlterField( + model_name='importertype', + name='slug', + field=models.SlugField(default='to-be-changed', max_length=100, unique=True, verbose_name='Slug'), + preserve_default=False, + ), + ] diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index fb1d964d0..b8a7d683e 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -110,10 +110,8 @@ class ImporterType(models.Model): """ Description of a table to be mapped with ishtar database """ - name = models.CharField(_(u"Name"), blank=True, null=True, - max_length=100) - slug = models.SlugField(_(u"Slug"), unique=True, max_length=100, - blank=True, null=True) + name = models.CharField(_(u"Name"), max_length=200) + slug = models.SlugField(_(u"Slug"), unique=True, max_length=100) description = models.CharField(_(u"Description"), blank=True, null=True, max_length=500) users = models.ManyToManyField('IshtarUser', verbose_name=_(u"Users"), |