mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 16:39:17 +02:00
See #872: added a new terms of service setting
This commit is contained in:
parent
01d2206001
commit
5ca3055713
4 changed files with 19 additions and 1 deletions
|
@ -43,6 +43,20 @@ class InstanceLongDescription(types.StringPreference):
|
|||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceTerms(types.StringPreference):
|
||||
show_in_api = True
|
||||
section = instance
|
||||
name = "terms"
|
||||
verbose_name = "Terms of service"
|
||||
default = ""
|
||||
help_text = (
|
||||
"Terms of service and privacy policy for your instance (markdown allowed)."
|
||||
)
|
||||
widget = widgets.Textarea
|
||||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class RavenDSN(types.StringPreference):
|
||||
show_in_api = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue