Skip to content

Commit

Permalink
Added field group migration
Browse files Browse the repository at this point in the history
  • Loading branch information
qoda committed Jan 17, 2017
1 parent c9a650e commit 7bf3048
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions formfactory/migrations/0005_auto_20170117_0336.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-01-17 03:36
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

dependencies = [
('formfactory', '0004_auto_20170117_0259'),
]

operations = [
migrations.CreateModel(
name='FormFieldGroup',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('tag_type', models.CharField(choices=[(b'Formset', b'formset'), (b'Div', b'div')], default=b'formset', max_length=16)),
('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subfieldgroups', to='formfactory.FormFieldGroup')),
],
),
migrations.AddField(
model_name='formfield',
name='field_group',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='formfactory.FormFieldGroup'),
),
]

0 comments on commit 7bf3048

Please sign in to comment.