# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-16 14:55
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('cfblog', '0006_category_is_static'),
    ]

    operations = [
        migrations.CreateModel(
            name='ContentLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('old_data', jsonfield.fields.JSONField(default=dict, editable=False, verbose_name='old data')),
                ('new_data', jsonfield.fields.JSONField(default=dict, editable=False, verbose_name='new data')),
                ('diff', models.TextField(editable=False, verbose_name='content diff')),
                ('changed_on', models.DateTimeField(auto_now_add=True, verbose_name='created on')),
                ('content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='logs', to='cfblog.Content')),
            ],
        ),
    ]
