@@ -0,0 +1,2021 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations, models%0Aimport denorm.fields%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('test_app', '0001_initial'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.CreateModel(%0A            name='FilterCountItem',%0A            fields=%5B%0A                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),%0A                ('active', models.BooleanField(default=False)),%0A                ('text', models.CharField(default=b'', max_length=10)),%0A            %5D,%0A        ),%0A        migrations.CreateModel(%0A            name='FilterCountModel',%0A            fields=%5B%0A                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),%0A                ('active_item_count', denorm.fields.CountField(b'items', default=0)),%0A            %5D,%0A        ),%0A        migrations.CreateModel(%0A            name='FilterSumItem',%0A            fields=%5B%0A                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),%0A                ('age', models.IntegerField(default=18)),%0A                ('active_item_count', models.PositiveIntegerField(default=False)),%0A            %5D,%0A        ),%0A        migrations.CreateModel(%0A            name='FilterSumModel',%0A            fields=%5B%0A                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),%0A                ('active_item_sum', denorm.fields.SumField(b'counts', default=0)),%0A            %5D,%0A        ),%0A        migrations.AddField(%0A            model_name='filtersumitem',%0A            name='parent',%0A            field=models.ForeignKey(related_name='counts', to='test_app.FilterSumModel'),%0A        ),%0A        migrations.AddField(%0A            model_name='filtercountitem',%0A            name='parent',%0A            field=models.ForeignKey(related_name='items', to='test_app.FilterCountModel'),%0A        ),%0A    %5D%0A

add migration for test app