fix(api): allow updating default_icecast_password (#1872)
Correctly implement the Preference.objects.update_or_create function.
This commit is contained in:
parent
3705747132
commit
7f926ab6a5
|
@ -61,7 +61,7 @@ class Command(BaseCommand):
|
||||||
if source_password is not None:
|
if source_password is not None:
|
||||||
Preference.objects.update_or_create(
|
Preference.objects.update_or_create(
|
||||||
keystr="default_icecast_password",
|
keystr="default_icecast_password",
|
||||||
valstr=source_password,
|
defaults={"valstr": source_password},
|
||||||
)
|
)
|
||||||
|
|
||||||
for key in ["s1", "s2", "s3", "s4"]:
|
for key in ["s1", "s2", "s3", "s4"]:
|
||||||
|
|
Loading…
Reference in New Issue