add direct link from itemtopik to page
authorFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:21:43 +0000 (11:21 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:21:43 +0000 (11:21 +0200)
panikombo/migrations/0013_auto_20200611_1121.py [new file with mode: 0644]
panikombo/models.py

diff --git a/panikombo/migrations/0013_auto_20200611_1121.py b/panikombo/migrations/0013_auto_20200611_1121.py
new file mode 100644 (file)
index 0000000..1b92299
--- /dev/null
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.29 on 2020-06-11 11:21
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('data', '0046_auto_20200611_1121'),
+        ('panikombo', '0012_auto_20171015_1027'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='itemtopik',
+            name='page',
+            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='data.Page'),
+        ),
+        migrations.AlterField(
+            model_name='itemtopik',
+            name='topik',
+            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='panikombo.Topik', verbose_name='Topik'),
+        ),
+    ]
index 5164d6d..948a66f 100644 (file)
@@ -240,6 +240,7 @@ class ItemTopik(models.Model):
             null=True, blank=True)
     episode = models.ForeignKey('emissions.Episode', verbose_name=_('Episode'),
             null=True, blank=True)
+    page = models.ForeignKey('data.Page', null=True, blank=True)
     topik = models.ForeignKey('Topik', verbose_name='Topik',
             null=True, blank=True)