summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net>2016-08-03 18:01:21 (GMT)
committerErnesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net>2016-08-03 18:01:21 (GMT)
commitbb828a37309ab297fc8d50ef261bbfc14c871a6e (patch)
tree55a537e25b25089f91bf19e0ee042dda7089b71b
parentabadb84db12788af3ecf525d6c2fb9c72efc2595 (diff)
remove automation_id in shows
-rw-r--r--program/admin.py2
-rw-r--r--program/migrations/0008_show_remove_automation_id.py18
-rw-r--r--program/models.py1
3 files changed, 19 insertions, 2 deletions
diff --git a/program/admin.py b/program/admin.py
index 591c363..b840d03 100644
--- a/program/admin.py
+++ b/program/admin.py
@@ -110,7 +110,7 @@ class ShowAdmin(admin.ModelAdmin):
search_fields = ('name', 'short_description', 'description')
fields = (
'predecessor', 'broadcastformat', 'name', 'slug', 'image', 'image_enabled', 'short_description', 'description',
- 'email', 'website', 'automation_id', 'hosts', 'owners', 'showinformation', 'showtopic',
+ 'email', 'website', 'hosts', 'owners', 'showinformation', 'showtopic',
'musicfocus',
)
diff --git a/program/migrations/0008_show_remove_automation_id.py b/program/migrations/0008_show_remove_automation_id.py
new file mode 100644
index 0000000..eda14c5
--- /dev/null
+++ b/program/migrations/0008_show_remove_automation_id.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('program', '0007_show_remove_cba_series_id'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='show',
+ name='automation_id',
+ ),
+ ]
diff --git a/program/models.py b/program/models.py
index eef8f93..b11d180 100644
--- a/program/models.py
+++ b/program/models.py
@@ -244,7 +244,6 @@ class Show(models.Model):
email = models.EmailField(_("E-Mail"), blank=True, null=True)
website = models.URLField(_("Website"), blank=True, null=True)
is_active = models.BooleanField(_("Is active"), default=True, editable=False)
- automation_id = models.IntegerField(_("Automation ID"), blank=True, null=True, choices=get_automation_id_choices())
created = models.DateTimeField(auto_now_add=True, editable=False)
last_updated = models.DateTimeField(auto_now=True, editable=False)