Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
499
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
funkwhale
Merge requests
!50
Instance description
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Instance description
instance-description
into
develop
Overview
0
Commits
4
Pipelines
1
Changes
8
Merged
Agate
requested to merge
instance-description
into
develop
7 years ago
Overview
0
Commits
4
Pipelines
1
Changes
8
Expand
Fix
#30 (closed)
👍
0
👎
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
7cb42001
4 commits,
7 years ago
8 files
+
121
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
api/funkwhale_api/instance/dynamic_preferences_registry.py
+
33
−
0
Options
from
django.forms
import
widgets
from
dynamic_preferences
import
types
from
dynamic_preferences.registries
import
global_preferences_registry
raven
=
types
.
Section
(
'
raven
'
)
instance
=
types
.
Section
(
'
instance
'
)
@global_preferences_registry.register
class
InstanceName
(
types
.
StringPreference
):
show_in_api
=
True
section
=
instance
name
=
'
name
'
default
=
''
help_text
=
'
Instance public name
'
verbose_name
=
'
The public name of your instance
'
@global_preferences_registry.register
class
InstanceShortDescription
(
types
.
StringPreference
):
show_in_api
=
True
section
=
instance
name
=
'
short_description
'
default
=
''
verbose_name
=
'
Instance succinct description
'
@global_preferences_registry.register
class
InstanceLongDescription
(
types
.
StringPreference
):
show_in_api
=
True
section
=
instance
name
=
'
long_description
'
default
=
''
help_text
=
'
Instance long description (markdown allowed)
'
field_kwargs
=
{
'
widget
'
:
widgets
.
Textarea
}
@global_preferences_registry.register
class
RavenDSN
(
types
.
StringPreference
):
Loading