diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-24 19:39:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-24 19:39:06 +0100 |
commit | a1c527975f9be70e5d3807f072a05a52c35b7c8e (patch) | |
tree | 3eab6d3ab5f8da3f4cb7c803b2237928b27b9d74 /ishtar_common/migrations/0022_customform.py | |
parent | 5d8a340c76470f47c45dd944a28f01b752ce6e98 (diff) | |
parent | b1897e55f28e9c3f56c41ae90067ad9890598b4c (diff) | |
download | Ishtar-a1c527975f9be70e5d3807f072a05a52c35b7c8e.tar.bz2 Ishtar-a1c527975f9be70e5d3807f072a05a52c35b7c8e.zip |
Merge branch 'develop' into develop-bootstrap
Diffstat (limited to 'ishtar_common/migrations/0022_customform.py')
-rw-r--r-- | ishtar_common/migrations/0022_customform.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ishtar_common/migrations/0022_customform.py b/ishtar_common/migrations/0022_customform.py new file mode 100644 index 000000000..8eaed6d89 --- /dev/null +++ b/ishtar_common/migrations/0022_customform.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2017-11-17 12:32 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ishtar_common', '0021_auto_20171110_1717'), + ] + + operations = [ + migrations.CreateModel( + name='CustomForm', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=250, verbose_name='Name')), + ('form', models.CharField(max_length=250, verbose_name='Form')), + ('available', models.BooleanField(default=True, verbose_name='Available')), + ('apply_to_all', models.BooleanField(default=False, help_text='Apply this form to all users. If set to True, selecting user and user type is useless.', verbose_name='Apply to all')), + ('user_types', models.ManyToManyField(blank=True, to='ishtar_common.PersonType')), + ('users', models.ManyToManyField(blank=True, to='ishtar_common.IshtarUser')), + ], + options={ + 'ordering': ['name', 'form'], + 'verbose_name': 'Custom form', + 'verbose_name_plural': 'Custom forms', + }, + ), + ] |