# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models

import staticgen.models


class Migration(migrations.Migration):

    dependencies = [
        ('sites', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='LogEntry',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('change_message', models.TextField(verbose_name='change message')),
                ('action_time', models.DateTimeField(auto_now=True, verbose_name='action time')),
            ],
            options={
                'ordering': ('-action_time',),
                'verbose_name': 'log entry',
                'verbose_name_plural': 'log entries',
            },
            managers=[
                ('objects', staticgen.models.LogEntryManager()),
            ],
        ),
        migrations.CreateModel(
            name='Page',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('path', models.CharField(max_length=255, verbose_name='URL')),
                ('publisher_state', models.SmallIntegerField(default=0, verbose_name='State', db_index=True, editable=False, choices=[(0, 'Pending'), (1, 'Changed'), (2, 'Published'), (3, 'Error'), (4, 'Deleted')])),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('site', models.ForeignKey(verbose_name='Site', to='sites.Site')),
            ],
            options={
                'ordering': ('path',),
                'verbose_name': 'page',
                'verbose_name_plural': 'pages',
            },
            managers=[
                ('objects', staticgen.models.PageManager()),
            ],
        ),
        migrations.AddField(
            model_name='logentry',
            name='page',
            field=models.ForeignKey(blank=True, to='staticgen.Page', null=True),
        ),
        migrations.AddField(
            model_name='logentry',
            name='site',
            field=models.ForeignKey(verbose_name='Site', to='sites.Site'),
        ),
        migrations.AlterUniqueTogether(
            name='page',
            unique_together=set([('site', 'path')]),
        ),
    ]

@@ -81,24 +81,32 @@
 import m
+odels, m
 igration
 s, model
@@ -101,41 +101,8 @@
 tion
-s, models%0A%0Aimport staticgen.model
 s%0A%0A%0A
@@ -817,97 +817,29 @@
     
-managers=%5B%0A                ('objects', staticgen.models.LogEntryManager()),%0A            %5D
+bases=(models.Model,)
 ,%0A  
@@ -1684,18 +1684,30 @@
     
-managers=%5B
+bases=(models.Model,),
 %0A   
@@ -1711,24 +1711,27 @@
         
+),%0A
         
 ('object
@@ -1726,66 +1726,116 @@
     
-('objects', staticgen.models.PageManager()),%0A            %5D
+migrations.AlterUniqueTogether(%0A            name='page',%0A            unique_together=set(%5B('site', 'path')%5D)
 ,%0A  
@@ -2013,16 +2013,51 @@
 =True),%0A
+            preserve_default=True,%0A
         
@@ -2235,127 +2235,33 @@
     
-),%0A        migrations.AlterUniqueTogether(%0A            name='page',%0A            unique_together=set(%5B('site', 'path')%5D)
+    preserve_default=True
 ,%0A  

Make migrations compatible with django==1.7.11