text: # -*- coding: utf-8 -*-
  # Generated by Django 1.9.5 on 2018-10-17 16:47
  from __future__ import unicode_literals
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import posts.models
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Post',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=120)),
                  ('slug', models.SlugField(unique=True)),
                  ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=posts.models.upload_location, width_field='width_field')),
                  ('height_field', models.IntegerField(default=0)),
                  ('width_field', models.IntegerField(default=0)),
                  ('content', models.TextField()),
                  ('draft', models.BooleanField(default=False)),
                  ('publish', models.DateField()),
                  ('read_time', models.IntegerField(default=0)),
                  ('updated', models.DateTimeField(auto_now=True)),
                  ('timestamp', models.DateTimeField(auto_now_add=True)),
                  ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'ordering': ['-timestamp', '-updated'],
              },
          ),
      ]
  