1 | # -*- coding: utf-8 -*-
|
---|
2 | from __future__ import unicode_literals
|
---|
3 |
|
---|
4 | from django.db import models, migrations
|
---|
5 |
|
---|
6 |
|
---|
7 | class Migration(migrations.Migration):
|
---|
8 |
|
---|
9 | dependencies = [
|
---|
10 | ('contenttypes', '0001_initial'),
|
---|
11 | ]
|
---|
12 |
|
---|
13 | operations = [
|
---|
14 | migrations.CreateModel(
|
---|
15 | name='MyItem',
|
---|
16 | fields=[
|
---|
17 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
---|
18 | ('name', models.TextField(max_length=50)),
|
---|
19 | ],
|
---|
20 | options=None,
|
---|
21 | bases=None,
|
---|
22 | ),
|
---|
23 | migrations.CreateModel(
|
---|
24 | name='MyList',
|
---|
25 | fields=[
|
---|
26 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
---|
27 | ('name', models.TextField(max_length=50)),
|
---|
28 | ('active', models.BooleanField(default=True)),
|
---|
29 | ],
|
---|
30 | options=None,
|
---|
31 | bases=None,
|
---|
32 | ),
|
---|
33 | migrations.CreateModel(
|
---|
34 | name='MyModel',
|
---|
35 | fields=[
|
---|
36 | ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
---|
37 | ('object_id', models.PositiveIntegerField()),
|
---|
38 | ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
|
---|
39 | ],
|
---|
40 | options=None,
|
---|
41 | bases=None,
|
---|
42 | ),
|
---|
43 | migrations.AddField(
|
---|
44 | model_name='myitem',
|
---|
45 | name='mylist',
|
---|
46 | field=models.ForeignKey(to='formbug.MyList'),
|
---|
47 | preserve_default=True,
|
---|
48 | ),
|
---|
49 | ]
|
---|