Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartaccent committed Mar 15, 2018
1 parent 2c5ff4c commit 0ca0b12
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ master

* in development

2.0.1
-----

* Fixed migration issue #70

2.0.0
-----

Expand Down
38 changes: 38 additions & 0 deletions example/migrations/0008_auto_20180315_2127.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 2.0.3 on 2018-03-15 21:27

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('example', '0007_auto_20180130_1120'),
]

operations = [
migrations.AlterModelOptions(
name='exampleformsubmission',
options={'ordering': ['-submit_time'], 'verbose_name': 'Form submission'},
),
migrations.AlterField(
model_name='exampleformsubmission',
name='form',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wagtailstreamforms.BaseForm', verbose_name='Form'),
),
migrations.AlterField(
model_name='exampleformsubmission',
name='form_data',
field=models.TextField(verbose_name='Form data'),
),
migrations.AlterField(
model_name='exampleformsubmission',
name='page',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.Page'),
),
migrations.AlterField(
model_name='exampleformsubmission',
name='submit_time',
field=models.DateTimeField(auto_now_add=True, verbose_name='Submit time'),
),
]
2 changes: 1 addition & 1 deletion wagtailstreamforms/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0'
__version__ = '2.0.1'
3 changes: 2 additions & 1 deletion wagtailstreamforms/migrations/0011_auto_20180130_0844.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import modelcluster.fields
import wagtailstreamforms.fields
import wagtailstreamforms.models.form
import wagtailstreamforms.models.form_field


class Migration(migrations.Migration):
Expand Down Expand Up @@ -114,7 +115,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='formfield',
name='field_type',
field=models.CharField(choices=[('singleline', 'Single line text'), ('multiline', 'Multi-line text'), ('email', 'Email'), ('number', 'Number'), ('url', 'URL'), ('checkbox', 'Checkbox'), ('checkboxes', 'Checkboxes'), ('dropdown', 'Drop down'), ('multiselect', 'Multiple select'), ('radio', 'Radio buttons'), ('date', 'Date'), ('datetime', 'Date/time'), ('regexfield', 'Regex validated field')], max_length=16, verbose_name='Field type'),
field=models.CharField(choices=wagtailstreamforms.models.form_field.get_form_field_choices(), max_length=16, verbose_name='Field type'),
),
migrations.AlterField(
model_name='formfield',
Expand Down

0 comments on commit 0ca0b12

Please sign in to comment.