2017-04-08 13:47:10 +00:00
# -*- coding: utf-8 -*-
2017-04-08 14:04:19 +00:00
# Generated by Django 1.10.6 on 2017-04-08 14:03
2017-04-08 13:47:10 +00:00
from __future__ import unicode_literals
from django . db import migrations , models
import django . db . models . deletion
import modelcluster . fields
2019-05-13 15:11:16 +00:00
import wagtail . core . fields
2017-04-08 13:47:10 +00:00
class Migration ( migrations . Migration ) :
dependencies = [
2017-04-08 14:04:19 +00:00
( ' home ' , ' 0008_auto_20170313_1755 ' ) ,
2017-04-08 13:47:10 +00:00
]
operations = [
2017-04-08 14:04:19 +00:00
migrations . CreateModel (
name = ' Contact ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' title ' , models . CharField ( default = ' ' , max_length = 255 ) ) ,
( ' title_fr ' , models . CharField ( default = ' ' , max_length = 255 ) ) ,
( ' address ' , models . TextField ( blank = True , default = ' ' ) ) ,
( ' phone ' , models . CharField ( default = ' ' , max_length = 40 ) ) ,
( ' email ' , models . CharField ( default = ' ' , max_length = 40 ) ) ,
( ' www ' , models . URLField ( blank = True , null = True ) ) ,
] ,
) ,
2017-04-08 13:47:10 +00:00
migrations . CreateModel (
name = ' ContactForm ' ,
fields = [
( ' page_ptr ' , models . OneToOneField ( auto_created = True , on_delete = django . db . models . deletion . CASCADE , parent_link = True , primary_key = True , serialize = False , to = ' wagtailcore.Page ' ) ) ,
( ' to_address ' , models . CharField ( blank = True , help_text = ' Optional - form submissions will be emailed to these addresses. Separate multiple addresses by comma. ' , max_length = 255 , verbose_name = ' to address ' ) ) ,
( ' from_address ' , models . CharField ( blank = True , max_length = 255 , verbose_name = ' from address ' ) ) ,
( ' subject ' , models . CharField ( blank = True , max_length = 255 , verbose_name = ' subject ' ) ) ,
( ' title_fr ' , models . CharField ( default = b ' ' , max_length = 255 ) ) ,
2019-05-13 15:11:16 +00:00
( ' intro_de ' , wagtail . core . fields . RichTextField ( blank = True , default = b ' ' ) ) ,
( ' intro_fr ' , wagtail . core . fields . RichTextField ( blank = True , default = b ' ' ) ) ,
( ' thanks_de ' , wagtail . core . fields . RichTextField ( blank = True , default = b ' ' ) ) ,
( ' thanks_fr ' , wagtail . core . fields . RichTextField ( blank = True , default = b ' ' ) ) ,
2017-04-08 13:47:10 +00:00
] ,
options = {
2017-04-08 14:04:19 +00:00
' verbose_name ' : ' Formular ' ,
2017-04-08 13:47:10 +00:00
} ,
bases = ( ' wagtailcore.page ' , ) ,
) ,
migrations . CreateModel (
name = ' ContactFormField ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' sort_order ' , models . IntegerField ( blank = True , editable = False , null = True ) ) ,
( ' label ' , models . CharField ( help_text = ' The label of the form field ' , max_length = 255 , verbose_name = ' label ' ) ) ,
( ' field_type ' , models . CharField ( choices = [ ( ' singleline ' , ' Single line text ' ) , ( ' multiline ' , ' Multi-line text ' ) , ( ' email ' , ' Email ' ) , ( ' number ' , ' Number ' ) , ( ' url ' , ' URL ' ) , ( ' checkbox ' , ' Checkbox ' ) , ( ' checkboxes ' , ' Checkboxes ' ) , ( ' dropdown ' , ' Drop down ' ) , ( ' radio ' , ' Radio buttons ' ) , ( ' date ' , ' Date ' ) , ( ' datetime ' , ' Date/time ' ) ] , max_length = 16 , verbose_name = ' field type ' ) ) ,
( ' required ' , models . BooleanField ( default = True , verbose_name = ' required ' ) ) ,
( ' choices ' , models . TextField ( blank = True , help_text = ' Comma separated list of choices. Only applicable in checkboxes, radio and dropdown. ' , verbose_name = ' choices ' ) ) ,
( ' default_value ' , models . CharField ( blank = True , help_text = ' Default value. Comma separated values supported for checkboxes. ' , max_length = 255 , verbose_name = ' default value ' ) ) ,
( ' help_text ' , models . CharField ( blank = True , max_length = 255 , verbose_name = ' help text ' ) ) ,
( ' page ' , modelcluster . fields . ParentalKey ( on_delete = django . db . models . deletion . CASCADE , related_name = ' form_fields ' , to = ' home.ContactForm ' ) ) ,
] ,
options = {
' ordering ' : [ ' sort_order ' ] ,
' abstract ' : False ,
} ,
) ,
]