Commit ebb51dfb authored by Guillaume Pellerin's avatar Guillaume Pellerin
Browse files

Cleanup migrations, change mezzanine migrations

parent 256c9cb9
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 16:52
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import mezzanine.core.fields
import mezzanine.utils.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('sites', '0002_alter_domain_unique'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='BlogCategory',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=500, verbose_name='Title')),
('title_fr', models.CharField(max_length=500, null=True, verbose_name='Title')),
('title_en', models.CharField(max_length=500, null=True, verbose_name='Title')),
('slug', models.CharField(blank=True, help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, null=True, verbose_name='URL')),
('site', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
],
options={
'ordering': ('title',),
'verbose_name': 'Blog Category',
'verbose_name_plural': 'Blog Categories',
},
),
migrations.CreateModel(
name='BlogPost',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('comments_count', models.IntegerField(default=0, editable=False)),
('keywords_string', models.CharField(blank=True, editable=False, max_length=500)),
('rating_count', models.IntegerField(default=0, editable=False)),
('rating_sum', models.IntegerField(default=0, editable=False)),
('rating_average', models.FloatField(default=0, editable=False)),
('title', models.CharField(max_length=500, verbose_name='Title')),
('title_fr', models.CharField(max_length=500, null=True, verbose_name='Title')),
('title_en', models.CharField(max_length=500, null=True, verbose_name='Title')),
('slug', models.CharField(blank=True, help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, null=True, verbose_name='URL')),
('_meta_title', models.CharField(blank=True, help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title')),
('_meta_title_fr', models.CharField(blank=True, help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title')),
('_meta_title_en', models.CharField(blank=True, help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title')),
('description', models.TextField(blank=True, verbose_name='Description')),
('description_fr', models.TextField(blank=True, null=True, verbose_name='Description')),
('description_en', models.TextField(blank=True, null=True, verbose_name='Description')),
('gen_description', models.BooleanField(default=True, help_text='If checked, the description will be automatically generated from content. Uncheck if you want to manually set a custom description.', verbose_name='Generate description')),
('created', models.DateTimeField(editable=False, null=True)),
('updated', models.DateTimeField(editable=False, null=True)),
('status', models.IntegerField(choices=[(1, 'Draft'), (2, 'Published')], default=2, help_text='With Draft chosen, will only be shown for admin users on the site.', verbose_name='Status')),
('publish_date', models.DateTimeField(blank=True, db_index=True, help_text="With Published chosen, won't be shown until this time", null=True, verbose_name='Published from')),
('expiry_date', models.DateTimeField(blank=True, help_text="With Published chosen, won't be shown after this time", null=True, verbose_name='Expires on')),
('short_url', models.URLField(blank=True, null=True)),
('in_sitemap', models.BooleanField(default=True, verbose_name='Show in sitemap')),
('content', mezzanine.core.fields.RichTextField(verbose_name='Content')),
('content_fr', mezzanine.core.fields.RichTextField(null=True, verbose_name='Content')),
('content_en', mezzanine.core.fields.RichTextField(null=True, verbose_name='Content')),
('allow_comments', models.BooleanField(default=True, verbose_name='Allow comments')),
('featured_image', mezzanine.core.fields.FileField(blank=True, max_length=255, null=True, verbose_name='Featured Image')),
('categories', models.ManyToManyField(blank=True, related_name='blogposts', to='blog.BlogCategory', verbose_name='Categories')),
('related_posts', models.ManyToManyField(blank=True, related_name='_blogpost_related_posts_+', to='blog.BlogPost', verbose_name='Related posts')),
('site', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blogposts', to=settings.AUTH_USER_MODEL, verbose_name='Author')),
],
options={
'ordering': ('-publish_date',),
'verbose_name': 'Blog post',
'verbose_name_plural': 'Blog posts',
},
bases=(models.Model, mezzanine.utils.models.AdminThumbMixin),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2018-03-07 10:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='blogcategory',
name='slug',
field=models.CharField(blank=True, default='', help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, verbose_name='URL'),
preserve_default=False,
),
migrations.AlterField(
model_name='blogpost',
name='slug',
field=models.CharField(blank=True, default='', help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, verbose_name='URL'),
preserve_default=False,
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 16:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('sites', '0002_alter_domain_unique'),
]
operations = [
migrations.CreateModel(
name='Setting',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=50)),
('value', models.CharField(max_length=2000)),
('value_fr', models.CharField(max_length=2000, null=True)),
('value_en', models.CharField(max_length=2000, null=True)),
('site', models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
],
options={
'verbose_name_plural': 'Settings',
'verbose_name': 'Setting',
},
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 16:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mezzanine.core.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('pages', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Field',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('_order', mezzanine.core.fields.OrderField(null=True, verbose_name='Order')),
('label', models.CharField(max_length=200, verbose_name='Label')),
('label_fr', models.CharField(max_length=200, null=True, verbose_name='Label')),
('label_en', models.CharField(max_length=200, null=True, verbose_name='Label')),
('field_type', models.IntegerField(choices=[(1, 'Single line text'), (2, 'Multi line text'), (3, 'Email'), (13, 'Number'), (14, 'URL'), (4, 'Check box'), (5, 'Check boxes'), (6, 'Drop down'), (7, 'Multi select'), (8, 'Radio buttons'), (9, 'File upload'), (10, 'Date'), (11, 'Date/time'), (15, 'Date of birth'), (12, 'Hidden')], verbose_name='Type')),
('required', models.BooleanField(default=True, verbose_name='Required')),
('visible', models.BooleanField(default=True, verbose_name='Visible')),
('choices', models.CharField(blank=True, help_text='Comma separated options where applicable. If an option itself contains commas, surround the option with `backticks`.', max_length=1000, verbose_name='Choices')),
('choices_fr', models.CharField(blank=True, help_text='Comma separated options where applicable. If an option itself contains commas, surround the option with `backticks`.', max_length=1000, null=True, verbose_name='Choices')),
('choices_en', models.CharField(blank=True, help_text='Comma separated options where applicable. If an option itself contains commas, surround the option with `backticks`.', max_length=1000, null=True, verbose_name='Choices')),
('default', models.CharField(blank=True, max_length=2000, verbose_name='Default value')),
('default_fr', models.CharField(blank=True, max_length=2000, null=True, verbose_name='Default value')),
('default_en', models.CharField(blank=True, max_length=2000, null=True, verbose_name='Default value')),
('placeholder_text', models.CharField(blank=True, max_length=100, verbose_name='Placeholder Text')),
('placeholder_text_fr', models.CharField(blank=True, max_length=100, null=True, verbose_name='Placeholder Text')),
('placeholder_text_en', models.CharField(blank=True, max_length=100, null=True, verbose_name='Placeholder Text')),
('help_text', models.CharField(blank=True, max_length=100, verbose_name='Help text')),
('help_text_fr', models.CharField(blank=True, max_length=100, null=True, verbose_name='Help text')),
('help_text_en', models.CharField(blank=True, max_length=100, null=True, verbose_name='Help text')),
],
options={
'ordering': ('_order',),
'verbose_name_plural': 'Fields',
'verbose_name': 'Field',
},
),
migrations.CreateModel(
name='FieldEntry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('field_id', models.IntegerField()),
('value', models.CharField(max_length=2000, null=True)),
],
options={
'verbose_name': 'Form field entry',
'verbose_name_plural': 'Form field entries',
},
),
migrations.CreateModel(
name='Form',
fields=[
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='pages.Page')),
('content', mezzanine.core.fields.RichTextField(verbose_name='Content')),
('content_fr', mezzanine.core.fields.RichTextField(null=True, verbose_name='Content')),
('content_en', mezzanine.core.fields.RichTextField(null=True, verbose_name='Content')),
('button_text', models.CharField(blank=True, max_length=50, verbose_name='Button text')),
('button_text_fr', models.CharField(blank=True, max_length=50, null=True, verbose_name='Button text')),
('button_text_en', models.CharField(blank=True, max_length=50, null=True, verbose_name='Button text')),
('response', mezzanine.core.fields.RichTextField(verbose_name='Response')),
('response_fr', mezzanine.core.fields.RichTextField(null=True, verbose_name='Response')),
('response_en', mezzanine.core.fields.RichTextField(null=True, verbose_name='Response')),
('send_email', models.BooleanField(default=True, help_text='To send an email to the email address supplied in the form upon submission, check this box.', verbose_name='Send email to user')),
('email_from', models.EmailField(blank=True, help_text='The address the email will be sent from', max_length=254, verbose_name='From address')),
('email_copies', models.CharField(blank=True, help_text='Provide a comma separated list of email addresses to be notified upon form submission. Leave blank to disable notifications.', max_length=200, verbose_name='Send email to others')),
('email_subject', models.CharField(blank=True, max_length=200, verbose_name='Subject')),
('email_subject_fr', models.CharField(blank=True, max_length=200, null=True, verbose_name='Subject')),
('email_subject_en', models.CharField(blank=True, max_length=200, null=True, verbose_name='Subject')),
('email_message', models.TextField(blank=True, help_text='Emails sent based on the above options will contain each of the form fields entered. You can also enter a message here that will be included in the email.', verbose_name='Message')),
('email_message_fr', models.TextField(blank=True, help_text='Emails sent based on the above options will contain each of the form fields entered. You can also enter a message here that will be included in the email.', null=True, verbose_name='Message')),
('email_message_en', models.TextField(blank=True, help_text='Emails sent based on the above options will contain each of the form fields entered. You can also enter a message here that will be included in the email.', null=True, verbose_name='Message')),
],
options={
'ordering': ('_order',),
'verbose_name_plural': 'Forms',
'verbose_name': 'Form',
},
bases=('pages.page', models.Model),
),
migrations.CreateModel(
name='FormEntry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('entry_time', models.DateTimeField(verbose_name='Date/time')),
('form', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='entries', to='forms.Form')),
],
options={
'verbose_name': 'Form entry',
'verbose_name_plural': 'Form entries',
},
),
migrations.AddField(
model_name='fieldentry',
name='entry',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fields', to='forms.FormEntry'),
),
migrations.AddField(
model_name='field',
name='form',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fields', to='forms.Form'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2018-03-07 10:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forms', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='field',
name='help_text',
field=models.TextField(blank=True, verbose_name='Help text'),
),
migrations.AlterField(
model_name='field',
name='help_text_en',
field=models.TextField(blank=True, null=True, verbose_name='Help text'),
),
migrations.AlterField(
model_name='field',
name='help_text_fr',
field=models.TextField(blank=True, null=True, verbose_name='Help text'),
),
migrations.AlterField(
model_name='field',
name='label',
field=models.TextField(verbose_name='Label'),
),
migrations.AlterField(
model_name='field',
name='label_en',
field=models.TextField(null=True, verbose_name='Label'),
),
migrations.AlterField(
model_name='field',
name='label_fr',
field=models.TextField(null=True, verbose_name='Label'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 16:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mezzanine.core.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('pages', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Gallery',
fields=[
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='pages.Page')),
('content', mezzanine.core.fields.RichTextField(verbose_name='Content')),
('content_fr', mezzanine.core.fields.RichTextField(null=True, verbose_name='Content')),
('content_en', mezzanine.core.fields.RichTextField(null=True, verbose_name='Content')),
('zip_import', models.FileField(blank=True, help_text="Upload a zip file containing images, and they'll be imported into this gallery.", upload_to='galleries', verbose_name='Zip import')),
],
options={
'verbose_name': 'Gallery',
'verbose_name_plural': 'Galleries',
'ordering': ('_order',),
},
bases=('pages.page', models.Model),
),
migrations.CreateModel(
name='GalleryImage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('_order', mezzanine.core.fields.OrderField(null=True, verbose_name='Order')),
('file', mezzanine.core.fields.FileField(max_length=200, verbose_name='File')),
('description', models.CharField(blank=True, max_length=1000, verbose_name='Description')),
('description_fr', models.CharField(blank=True, max_length=1000, null=True, verbose_name='Description')),
('description_en', models.CharField(blank=True, max_length=1000, null=True, verbose_name='Description')),
('gallery', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='galleries.Gallery')),
],
options={
'verbose_name': 'Image',
'verbose_name_plural': 'Images',
'ordering': ('_order',),
},
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('django_comments', '__first__'),
('contenttypes', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='AssignedKeyword',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('_order', models.IntegerField(null=True, verbose_name='Order')),
('object_pk', models.IntegerField()),
('content_type', models.ForeignKey(to='contenttypes.ContentType')),
],
options={
'ordering': ('_order',),
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Keyword',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('title', models.CharField(max_length=500, verbose_name='Title')),
('slug', models.CharField(help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, null=True, verbose_name='URL', blank=True)),
('site', models.ForeignKey(editable=False, to='sites.Site')),
],
options={
'verbose_name': 'Keyword',
'verbose_name_plural': 'Keywords',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Rating',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('value', models.IntegerField(verbose_name='Value')),
('rating_date', models.DateTimeField(auto_now_add=True, verbose_name='Rating date', null=True)),
('object_pk', models.IntegerField()),
('content_type', models.ForeignKey(to='contenttypes.ContentType')),
('user', models.ForeignKey(related_name='ratings', verbose_name='Rater', to=settings.AUTH_USER_MODEL, null=True)),
],
options={
'verbose_name': 'Rating',
'verbose_name_plural': 'Ratings',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ThreadedComment',
fields=[
('comment_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='django_comments.Comment')),
('rating_count', models.IntegerField(default=0, editable=False)),
('rating_sum', models.IntegerField(default=0, editable=False)),
('rating_average', models.FloatField(default=0, editable=False)),
('by_author', models.BooleanField(default=False, verbose_name='By the blog author')),
('replied_to', models.ForeignKey(related_name='comments', editable=False, to='generic.ThreadedComment', null=True)),
],
options={
'verbose_name': 'Comment',
'verbose_name_plural': 'Comments',
},
bases=('django_comments.comment',),
),
migrations.AddField(
model_name='assignedkeyword',
name='keyword',
field=models.ForeignKey(related_name='assignments', verbose_name='Keyword', to='generic.Keyword'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import mezzanine.core.fields
class Migration(migrations.Migration):
dependencies = [
('generic', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='assignedkeyword',
name='_order',
field=mezzanine.core.fields.OrderField(null=True, verbose_name='Order'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-23 12:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('generic', '0002_auto_20141227_0224'),
]
operations = [
migrations.AddField(
model_name='keyword',
name='title_en',
field=models.CharField(max_length=500, null=True, verbose_name='Title'),
),
migrations.AddField(
model_name='keyword',
name='title_fr',
field=models.CharField(max_length=500, null=True, verbose_name='Title'),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2018-03-07 10:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('generic', '0003_auto_20160923_1426'),
]
operations = [
migrations.AlterField(
model_name='keyword',
name='slug',
field=models.CharField(blank=True, default='', help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, verbose_name='URL'),
preserve_default=False,
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 16:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import mezzanine.core.fields
import mezzanine.pages.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('sites', '0002_alter_domain_unique'),
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('keywords_string', models.CharField(blank=True, editable=False, max_length=500)),
('title', models.CharField(max_length=500, verbose_name='Title')),
('title_fr', models.CharField(max_length=500, null=True, verbose_name='Title')),
('title_en', models.CharField(max_length=500, null=True, verbose_name='Title')),
('slug', models.CharField(blank=True, help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, null=True, verbose_name='URL')),
('_meta_title', models.CharField(blank=True, help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title')),
('_meta_title_fr', models.CharField(blank=True, help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title')),
('_meta_title_en', models.CharField(blank=True, help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title')),
('description', models.TextField(blank=True, verbose_name='Description')),
('description_fr', models.TextField(blank=True, null=True, verbose_name='Description')),
('description_en', models.TextField(blank=True, null=True, verbose_name='Description')),
('gen_description', models.BooleanField(default=True, help_text='If checked, the description will be automatically generated from content. Uncheck if you want to manually set a custom description.', verbose_name='Generate description')),
('created', models.DateTimeField(editable=False, null=True)),
('updated', models.DateTimeField(editable=False, null=True)),
('status', models.IntegerField(choices=[(1, 'Draft'), (2, 'Published')], default=2, help_text='With Draft chosen, will only be shown for admin users on the site.', verbose_name='Status')),
('publish_date', models.DateTimeField(blank=True, db_index=True, help_text="With Published chosen, won't be shown until this time", null=True, verbose_name='Published from')),