]> git.0d.be Git - django-panik-emissions.git/commitdiff
nonstop: add field to define a redirection for nonstop slots
authorFrédéric Péters <fpeters@0d.be>
Thu, 28 Jun 2018 04:44:16 +0000 (06:44 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 28 Jun 2018 04:44:16 +0000 (06:44 +0200)
emissions/migrations/0012_nonstop_redirect_path.py [new file with mode: 0644]
emissions/models.py

diff --git a/emissions/migrations/0012_nonstop_redirect_path.py b/emissions/migrations/0012_nonstop_redirect_path.py
new file mode 100644 (file)
index 0000000..b7475bf
--- /dev/null
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('emissions', '0011_auto_20171002_2231'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='nonstop',
+            name='redirect_path',
+            field=models.CharField(max_length=200, verbose_name='Redirect Path', blank=True),
+        ),
+    ]
index 45d5fb61a90c6fb9eb1fcd0965ce7619ff807f70..8855cb890ba41e9baa5d865dc532b33d0dad8777 100644 (file)
@@ -544,6 +544,7 @@ class Nonstop(models.Model):
     start = models.TimeField(_('Start'))
     end = models.TimeField(_('End'))
     text = RichTextField(_('Description'), null=True, blank=True)
+    redirect_path = models.CharField(_('Redirect Path'), max_length=200, blank=True)
 
     def __unicode__(self):
         return self.title