From 9896985bf6ed0165649fb6a358c24339745a705d Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 24 Jan 2022 17:31:21 -0400 Subject: [PATCH] Remove automation_id from Schedule model --- program/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/program/models.py b/program/models.py index 9f85fe5c..df0732e2 100644 --- a/program/models.py +++ b/program/models.py @@ -35,7 +35,6 @@ from django.utils.translation import gettext_lazy as _ from versatileimagefield.fields import VersatileImageField, PPOIField from steering.settings import THUMBNAIL_SIZES, AUTO_SET_UNTIL_DATE_TO_END_OF_YEAR, AUTO_SET_UNTIL_DATE_TO_DAYS_IN_FUTURE -from .utils import get_automation_id_choices class Type(models.Model): @@ -289,8 +288,6 @@ class Schedule(models.Model): add_days_no = models.IntegerField(_("Add days"), blank=True, null=True) add_business_days_only = models.BooleanField(_("Only add business days?"), default=False) default_playlist_id = models.IntegerField(_("Default Playlist ID"), blank=True, null=True) - automation_id = models.IntegerField(_("Automation ID"), blank=True, null=True, - choices=get_automation_id_choices()) # Deprecated # -> both see https://stackoverflow.com/questions/1737017/django-auto-now-and-auto-now-add created = models.DateTimeField(auto_now_add=True, editable=False, null=True) @@ -328,7 +325,6 @@ class Schedule(models.Model): is_repetition = True if 'is_repetition' in sdl and sdl['is_repetition'] is True else False default_playlist_id = int(sdl['default_playlist_id']) if sdl['default_playlist_id'] else None - automation_id = int(sdl['automation_id']) if sdl['automation_id'] else None add_days_no = int(sdl['add_days_no']) if sdl['add_days_no'] > 0 else None add_business_days_only = True if 'add_business_days_only' in sdl and sdl['add_business_days_only'] is True else False -- GitLab