]> git.0d.be Git - django-panik-combo.git/blobdiff - panikombo/migrations/0005_topik.py
add Topik object, wrapper around Page
[django-panik-combo.git] / panikombo / migrations / 0005_topik.py
diff --git a/panikombo/migrations/0005_topik.py b/panikombo/migrations/0005_topik.py
new file mode 100644 (file)
index 0000000..226df96
--- /dev/null
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+import panikombo.models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('data', '0005_auto_20150226_0903'),
+        ('panikombo', '0004_newsitemautoselectioncell'),
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Topik',
+            fields=[
+                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+                ('image', models.ImageField(max_length=250, upload_to=panikombo.models.get_topik_image_path, null=True, verbose_name='Image', blank=True)),
+                ('got_focus', models.DateTimeField(default=None, null=True, blank=True)),
+                ('has_focus', models.BooleanField(default=False)),
+                ('page', models.ForeignKey(to='data.Page')),
+            ],
+            options={
+            },
+            bases=(models.Model,),
+        ),
+    ]