mise-en-production
[auf_framonde.git] / project / cmsplugin_contact_plus / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5 import django.db.models.deletion
6 import cmsplugin_contact_plus.models
7 import jsonfield.fields
8
9
10 class Migration(migrations.Migration):
11
12 dependencies = [
13 ('cms', '0003_auto_20140926_2347'),
14 ]
15
16 operations = [
17 migrations.CreateModel(
18 name='ContactPlus',
19 fields=[
20 ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
21 ('title', models.CharField(help_text='Title for the Contact Form.', max_length=100, null=True, verbose_name='Title', blank=True)),
22 ('email_subject', models.CharField(default=cmsplugin_contact_plus.models.get_current_site, max_length=256, verbose_name='Email subject')),
23 ('recipient_email', models.EmailField(default=b'', max_length=75, verbose_name='Email of recipients')),
24 ('collect_records', models.BooleanField(default=True, help_text='If active, all records for this Form will be stored in the Database.', verbose_name='Collect Records')),
25 ('thanks', models.TextField(verbose_name='Message displayed after submitting the contact form.')),
26 ('submit', models.CharField(max_length=30, verbose_name='Text for the Submit button.', blank=True)),
27 ('template', models.CharField(default=b'cmsplugin_contact_plus/contact.html', max_length=255, editable=False, choices=[(b'cmsplugin_contact_plus/contact.html', b'contact.html')])),
28 ],
29 options={
30 'verbose_name': 'Contact Plus Form',
31 'verbose_name_plural': 'Contact Plus Forms',
32 },
33 bases=('cms.cmsplugin',),
34 ),
35 migrations.CreateModel(
36 name='ContactRecord',
37 fields=[
38 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
39 ('date_of_entry', models.DateTimeField(auto_now_add=True)),
40 ('date_processed', models.DateTimeField(help_text=b'Date the Record was processed.', null=True, blank=True)),
41 ('data', jsonfield.fields.JSONField(default={}, null=True, blank=True)),
42 ('contact_form', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, verbose_name='Contact Form', to='cmsplugin_contact_plus.ContactPlus', null=True)),
43 ],
44 options={
45 'ordering': ['date_of_entry', 'contact_form'],
46 'verbose_name': 'Contact Record',
47 'verbose_name_plural': 'Contact Records',
48 },
49 bases=(models.Model,),
50 ),
51 migrations.CreateModel(
52 name='ExtraField',
53 fields=[
54 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
55 ('inline_ordering_position', models.IntegerField(null=True, blank=True)),
56 ('label', models.CharField(max_length=100, verbose_name='Label')),
57 ('fieldType', models.CharField(max_length=100, choices=[(b'CharField', b'CharField'), (b'BooleanField', b'BooleanField'), (b'EmailField', b'EmailField'), (b'DecimalField', b'DecimalField'), (b'FloatField', b'FloatField'), (b'IntegerField', b'IntegerField'), (b'IPAddressField', b'IPAddressField'), (b'auto_Textarea', b'CharField as Textarea'), (b'auto_hidden_input', b'CharField as HiddenInput'), (b'auto_referral_page', b'Referral page as HiddenInput'), (b'auto_GET_parameter', b'GET parameter as HiddenInput')])),
58 ('initial', models.CharField(max_length=250, null=True, verbose_name='Inital Value', blank=True)),
59 ('required', models.BooleanField(default=True, verbose_name='Mandatory field')),
60 ('widget', models.CharField(help_text='Will be ignored in the current version.', max_length=250, null=True, verbose_name='Widget', blank=True)),
61 ('form', models.ForeignKey(verbose_name='Contact Form', to='cmsplugin_contact_plus.ContactPlus')),
62 ],
63 options={
64 'ordering': ('inline_ordering_position',),
65 'abstract': False,
66 },
67 bases=(models.Model,),
68 ),
69 ]