See #206: minor tweaks on settings (wording, input type...)

This commit is contained in:
Eliot Berriot 2018-05-17 23:40:06 +02:00
commit e7619fd189
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
7 changed files with 61 additions and 30 deletions

View file

@ -1,3 +1,5 @@
from django import forms
from dynamic_preferences.types import StringPreference, Section
from dynamic_preferences.registries import global_preferences_registry
@ -11,3 +13,7 @@ class APIKey(StringPreference):
default = ''
verbose_name = 'Acoustid API key'
help_text = 'The API key used to query AcoustID. Get one at https://acoustid.org/new-application.'
widget = forms.PasswordInput
field_kwargs = {
'required': False,
}

View file

@ -1,3 +1,5 @@
from django import forms
from dynamic_preferences.types import StringPreference, Section
from dynamic_preferences.registries import global_preferences_registry
@ -11,3 +13,7 @@ class APIKey(StringPreference):
default = 'CHANGEME'
verbose_name = 'YouTube API key'
help_text = 'The API key used to query YouTube. Get one at https://console.developers.google.com/.'
widget = forms.PasswordInput
field_kwargs = {
'required': False,
}