fix(api): allow updating default_icecast_password (#1872)

Correctly implement the Preference.objects.update_or_create function.
This commit is contained in:
Jonas L 2022-06-12 07:52:54 +02:00 committed by GitHub
parent 3705747132
commit 7f926ab6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"]: