From bb828a37309ab297fc8d50ef261bbfc14c871a6e Mon Sep 17 00:00:00 2001
From: Ernesto Rico-Schmidt <ernesto.rico-schmidt@evolaris.net>
Date: Wed, 3 Aug 2016 20:01:21 +0200
Subject: [PATCH] remove automation_id in shows

---
 program/admin.py                               |  2 +-
 .../0008_show_remove_automation_id.py          | 18 ++++++++++++++++++
 program/models.py                              |  1 -
 3 files changed, 19 insertions(+), 2 deletions(-)
 create mode 100644 program/migrations/0008_show_remove_automation_id.py

diff --git a/program/admin.py b/program/admin.py
index 591c363f..b840d03b 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 00000000..eda14c51
--- /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 eef8f932..b11d1802 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)
 
-- 
GitLab