diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-08-10 13:23:16 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-02-05 10:51:51 +0100 |
commit | 90e033d2d9cfdf56a76b4d6561069a362d4675cb (patch) | |
tree | 1b679c0e2ddb57ff8aa616d8a9717f3ef35c597e /ishtar_common/migrations | |
parent | 2caa3b4d350b62e9556a340f02bde711d380e383 (diff) | |
download | Ishtar-90e033d2d9cfdf56a76b4d6561069a362d4675cb.tar.bz2 Ishtar-90e033d2d9cfdf56a76b4d6561069a362d4675cb.zip |
✨ Imports groups: initialize action
Diffstat (limited to 'ishtar_common/migrations')
-rw-r--r-- | ishtar_common/migrations/0230_auto_20230810_1140.py (renamed from ishtar_common/migrations/0230_auto_20230809_1149.py) | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ishtar_common/migrations/0230_auto_20230809_1149.py b/ishtar_common/migrations/0230_auto_20230810_1140.py index aaf97671a..b668baa84 100644 --- a/ishtar_common/migrations/0230_auto_20230809_1149.py +++ b/ishtar_common/migrations/0230_auto_20230810_1140.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2.24 on 2023-08-09 11:49 +# Generated by Django 2.2.24 on 2023-08-10 11:40 import django.core.validators from django.db import migrations, models @@ -32,6 +32,11 @@ class Migration(migrations.Migration): options={'verbose_name': 'Import - Import', 'verbose_name_plural': 'Import - Imports'}, ), migrations.AddField( + model_name='import', + name='next_import', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='imports', to='ishtar_common.Import', verbose_name='Next import'), + ), + migrations.AddField( model_name='importertype', name='archive_required', field=models.BooleanField(default=False, verbose_name='Archive required'), @@ -47,6 +52,11 @@ class Migration(migrations.Migration): field=models.PositiveIntegerField(default=1, help_text='When using an Excel or Calc file choose the tab number. Keep it to 1 by default.', validators=[django.core.validators.MinValueValidator(1)], verbose_name='Tab number'), ), migrations.AlterField( + model_name='import', + name='imported_images', + field=models.FileField(blank=True, help_text='La taille maximale supportée pour le fichier est de 100 Mo.', max_length=220, null=True, upload_to='upload/imports/%Y/%m/', verbose_name='Associated documents (zip file)'), + ), + migrations.AlterField( model_name='ishtarsiteprofile', name='account_naming_style', field=models.CharField(choices=[('NF', 'name.firstname'), ('FN', 'firstname.name')], default='FN', max_length=2, verbose_name='Naming style for accounts'), @@ -57,7 +67,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=500, null=True, verbose_name='Name')), ('imported_file', models.FileField(blank=True, help_text='La taille maximale supportée pour le fichier est de 100 Mo.', max_length=220, null=True, upload_to='upload/imports/%Y/%m/', verbose_name='Imported file')), - ('imported_images', models.FileField(blank=True, help_text='La taille maximale supportée pour le fichier est de 100 Mo.', max_length=220, null=True, upload_to='upload/imports/%Y/%m/', verbose_name='Associated images (zip file)')), + ('imported_images', models.FileField(blank=True, help_text='La taille maximale supportée pour le fichier est de 100 Mo.', max_length=220, null=True, upload_to='upload/imports/%Y/%m/', verbose_name='Associated documents (zip file)')), ('encoding', models.CharField(choices=[('windows-1252', 'windows-1252'), ('ISO-8859-15', 'ISO-8859-15'), ('utf-8', 'utf-8')], default='utf-8', help_text='Only required for CSV file', max_length=15, verbose_name='Encoding')), ('csv_sep', models.CharField(choices=[(',', ','), (';', ';'), ('|', '|')], default=',', help_text='Separator for CSV file. Standard is comma but Microsoft Excel do not follow this standard and use semi-colon.', max_length=1, verbose_name='CSV separator')), ('skip_lines', models.IntegerField(default=1, help_text='Number of header lines in your file (can be 0 and should be 0 for geopackage or Shapefile).', verbose_name='Skip lines')), |