See #206: minor tweaks on settings (wording, input type...)
This commit is contained in:
parent
13c5219d71
commit
e7619fd189
7 changed files with 61 additions and 30 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue