mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 13:29:20 +02:00
See #872: rules and contact email settings
This commit is contained in:
parent
853cd833b5
commit
dce7a74f7e
4 changed files with 31 additions and 0 deletions
|
@ -59,6 +59,29 @@ class InstanceTerms(types.StringPreference):
|
|||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceRules(types.StringPreference):
|
||||
show_in_api = True
|
||||
section = instance
|
||||
name = "rules"
|
||||
verbose_name = "Rules"
|
||||
default = ""
|
||||
help_text = "Rules/Code of Conduct (markdown allowed)."
|
||||
widget = widgets.Textarea
|
||||
field_kwargs = {"required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class InstanceContactEmail(types.StringPreference):
|
||||
show_in_api = True
|
||||
section = instance
|
||||
name = "contact_email"
|
||||
verbose_name = "Contact email"
|
||||
default = ""
|
||||
help_text = "A contact email for visitors who need to contact an admin or moderator"
|
||||
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