Run 2to3-3.4
[mygpo.git] / mygpo / episodestates / migrations / 0001_initial.py
bloba1d6754688b9696c17278fb8a978ad724a81b8fd
1 # -*- coding: utf-8 -*-
4 from django.db import models, migrations
5 from django.conf import settings
8 class Migration(migrations.Migration):
10 dependencies = [
11 ('podcasts', '0029_episode_index_toplist'),
12 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
15 operations = [
16 migrations.CreateModel(
17 name='EpisodeState',
18 fields=[
19 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
20 ('action', models.CharField(max_length=8, choices=[('download', 'downloaded'), ('play', 'played'), ('delete', 'deleted'), ('new', 'marked as new'), ('flattr', "flattr'd")])),
21 ('timestamp', models.DateTimeField()),
22 ('episode', models.ForeignKey(to='podcasts.Episode')),
23 ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
25 options={
27 bases=(models.Model,),
29 migrations.AlterUniqueTogether(
30 name='episodestate',
31 unique_together=set([('user', 'episode')]),