new_contents: # -*- coding: utf-8 -*-
  # Generated by Django 1.10.6 on 2017-03-24 15:29
  from __future__ import unicode_literals
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import taggit.managers
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('taggit', '0002_auto_20150616_2121'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Favorite',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
              ],
              options={
                  'verbose_name': 'Favorite',
                  'verbose_name_plural': 'Favorites',
              },
          ),
          migrations.CreateModel(
              name='Talk',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('code', models.CharField(max_length=25)),
                  ('title', models.CharField(max_length=200)),
                  ('slug', models.SlugField(blank=True, max_length=200, unique=True)),
                  ('description', models.TextField()),
                  ('created', models.DateTimeField(verbose_name='date created')),
                  ('updated', models.DateTimeField(verbose_name='date updated')),
                  ('view_count', models.PositiveIntegerField(verbose_name='view count')),
                  ('vote_count', models.PositiveIntegerField(verbose_name='vote count')),
                  ('fav_count', models.PositiveIntegerField(verbose_name='favorite count')),
                  ('type', models.CharField(choices=[('youtube', 'Youtube'), ('vimeo', 'Vimeo')], default='youtube', max_length=10)),
                  ('author', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                  ('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
              ],
              options={
                  'ordering': ['-created', '-updated'],
                  'verbose_name': 'Talk',
                  'get_latest_by': '-created',
                  'verbose_name_plural': 'Talks',
              },
          ),
          migrations.CreateModel(
              name='Vote',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('talk', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='talks.Talk')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name': 'Vote',
                  'verbose_name_plural': 'Votes',
              },
          ),
          migrations.AddField(
              model_name='favorite',
              name='talk',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='talks.Talk'),
          ),
          migrations.AddField(
              model_name='favorite',
              name='user',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
          ),
      ]
  
subject: reset migrations