1 # -*- coding: utf-8 -*-
4 from django
.db
import models
, migrations
5 from django
.conf
import settings
8 class Migration(migrations
.Migration
):
11 ('podcasts', '0029_episode_index_toplist'),
12 migrations
.swappable_dependency(settings
.AUTH_USER_MODEL
),
16 migrations
.CreateModel(
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
)),
27 bases
=(models
.Model
,),
29 migrations
.AlterUniqueTogether(
31 unique_together
=set([('user', 'episode')]),