From 7f926ab6a505d5f1762efcaf25f0387d4347cafd Mon Sep 17 00:00:00 2001 From: Jonas L Date: Sun, 12 Jun 2022 07:52:54 +0200 Subject: [PATCH] fix(api): allow updating default_icecast_password (#1872) Correctly implement the Preference.objects.update_or_create function. --- .../legacy/management/commands/set_icecast_passwords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/libretime_api/legacy/management/commands/set_icecast_passwords.py b/api/libretime_api/legacy/management/commands/set_icecast_passwords.py index 35bda87c8..2acd0e3da 100644 --- a/api/libretime_api/legacy/management/commands/set_icecast_passwords.py +++ b/api/libretime_api/legacy/management/commands/set_icecast_passwords.py @@ -61,7 +61,7 @@ class Command(BaseCommand): if source_password is not None: Preference.objects.update_or_create( keystr="default_icecast_password", - valstr=source_password, + defaults={"valstr": source_password}, ) for key in ["s1", "s2", "s3", "s4"]: