Skip to content
Snippets Groups Projects
Verified Commit 602a6523 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add preferences for Matrix homeserver

parent afb7d563
No related branches found
No related tags found
No related merge requests found
from django.utils.translation import gettext as _
from dynamic_preferences.preferences import Section
from dynamic_preferences.types import StringPreference
from aleksis.core.registries import site_preferences_registry
matrix = Section("matrix", verbose_name=_("Matrix"))
@site_preferences_registry.register
class Homeserver(StringPreference):
section = matrix
name = "homeserver"
verbose_name = _("URL of Matrix homeserver")
@site_preferences_registry.register
class AccessToken(StringPreference):
section = matrix
name = "access_token"
verbose_name = _("Access token to access homeserver")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment