summaryrefslogtreecommitdiff
path: root/ishtar_common/migrations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-01-07 17:01:15 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:23 +0100
commit1bd10cc3c50ca5c3daca6d04ecd5dfa94f7f3dca (patch)
treeca1a7659db18b4edc950e729ccfbd99fd0fd2260 /ishtar_common/migrations
parent10e7c72a87c322c783195437aeff6a19fb17550f (diff)
downloadIshtar-1bd10cc3c50ca5c3daca6d04ecd5dfa94f7f3dca.tar.bz2
Ishtar-1bd10cc3c50ca5c3daca6d04ecd5dfa94f7f3dca.zip
Auto-generate labels from a base libreoffice template
Diffstat (limited to 'ishtar_common/migrations')
-rw-r--r--ishtar_common/migrations/0210_auto_20210106_1127.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/ishtar_common/migrations/0210_auto_20210106_1127.py b/ishtar_common/migrations/0210_auto_20210106_1127.py
new file mode 100644
index 000000000..3dcf7e7ce
--- /dev/null
+++ b/ishtar_common/migrations/0210_auto_20210106_1127.py
@@ -0,0 +1,30 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.27 on 2021-01-06 11:27
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('ishtar_common', '0209_auto_20210105_1712'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='documenttemplate',
+ name='label_targets',
+ field=models.TextField(blank=True, help_text='Each target is separated by a semi-colon. The first target is the name of the object including the data in base template. Following targets will be filled with the content of the first target. For instance: "Cadre1;Cadre2;Cadre3;Cadre4;Cadre5;Cadre6" for a sheet with 6 labels.', null=True, verbose_name='Labels: targets for labels in the LibreOffice file'),
+ ),
+ migrations.AddField(
+ model_name='documenttemplate',
+ name='label_template',
+ field=models.FileField(blank=True, help_text='La taille maximale supportée pour le fichier est de 100 Mo.', null=True, upload_to='templates/%Y/', verbose_name='Base template for labels'),
+ ),
+ migrations.AlterField(
+ model_name='documenttemplate',
+ name='template',
+ field=models.FileField(blank=True, help_text='La taille maximale supportée pour le fichier est de 100 Mo.', null=True, upload_to='templates/%Y/', verbose_name='Template'),
+ ),
+ ]