From 71e389c14a1b70885100da9739683c488853dc1b Mon Sep 17 00:00:00 2001 From: Tiberiu Chibici Date: Mon, 19 Aug 2019 16:40:40 +0300 Subject: [PATCH] Forgot to modify 'delete_after_watched' to 'automatically_delete_watched' in index views, which was causing a backend error when editing a subscription. --- app/YtManagerApp/views/index.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/YtManagerApp/views/index.py b/app/YtManagerApp/views/index.py index acac5c2..1c93f8d 100644 --- a/app/YtManagerApp/views/index.py +++ b/app/YtManagerApp/views/index.py @@ -283,7 +283,7 @@ class CreateSubscriptionForm(forms.ModelForm): 'auto_download', 'download_limit', 'download_order', - 'delete_after_watched' + 'automatically_delete_watched' ) def clean_playlist_url(self): @@ -349,7 +349,7 @@ class UpdateSubscriptionForm(forms.ModelForm): 'auto_download', 'download_limit', 'download_order', - 'delete_after_watched' + 'automatically_delete_watched' ) @@ -403,7 +403,7 @@ class ImportSubscriptionsForm(forms.Form): auto_download = forms.ChoiceField(choices=TRUE_FALSE_CHOICES, required=False) download_limit = forms.IntegerField(required=False) download_order = forms.ChoiceField(choices=VIDEO_ORDER_CHOICES_WITH_EMPTY, required=False) - delete_after_watched = forms.ChoiceField(choices=TRUE_FALSE_CHOICES, required=False) + automatically_delete_watched = forms.ChoiceField(choices=TRUE_FALSE_CHOICES, required=False) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -418,7 +418,7 @@ class ImportSubscriptionsForm(forms.Form): 'auto_download', 'download_limit', 'download_order', - 'delete_after_watched' + 'automatically_delete_watched' ) def __clean_empty_none(self, name: str): @@ -438,8 +438,8 @@ class ImportSubscriptionsForm(forms.Form): def clean_auto_download(self): return self.__clean_boolean('auto_download') - def clean_delete_after_watched(self): - return self.__clean_boolean('delete_after_watched') + def clean_automatically_delete_watched(self): + return self.__clean_boolean('automatically_delete_watched') def clean_download_order(self): return self.__clean_empty_none('download_order')