Skip to content
Snippets Groups Projects
Verified Commit 8c0aa945 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Remove useless whitespaces

parent fe268721
No related branches found
No related tags found
1 merge request!333Documentation for beta release (Documentation for first release part 1)
Pipeline #4991 failed
...@@ -306,7 +306,7 @@ class ExtensibleForm(ModelForm, metaclass=_ExtensibleFormMetaclass): ...@@ -306,7 +306,7 @@ class ExtensibleForm(ModelForm, metaclass=_ExtensibleFormMetaclass):
- apps to add layout nodes to the layout used by django-material - apps to add layout nodes to the layout used by django-material
:Add layout nodes: :Add layout nodes:
.. code-block:: python .. code-block:: python
from material import Fieldset from material import Fieldset
......
...@@ -92,7 +92,7 @@ class Favicon(FilePreference): ...@@ -92,7 +92,7 @@ class Favicon(FilePreference):
@site_preferences_registry.register @site_preferences_registry.register
class PWAIcon(FilePreference): class PWAIcon(FilePreference):
"""PWA-Icon""" """PWA-Icon of your AlekSIS instance."""
section = theme section = theme
field_class = ImageField field_class = ImageField
...@@ -102,7 +102,7 @@ class PWAIcon(FilePreference): ...@@ -102,7 +102,7 @@ class PWAIcon(FilePreference):
@site_preferences_registry.register @site_preferences_registry.register
class MailOutName(StringPreference): class MailOutName(StringPreference):
"""Mail out name""" """Mail out name of your AlekSIS instance."""
section = mail section = mail
name = "name" name = "name"
...@@ -113,7 +113,7 @@ class MailOutName(StringPreference): ...@@ -113,7 +113,7 @@ class MailOutName(StringPreference):
@site_preferences_registry.register @site_preferences_registry.register
class MailOut(StringPreference): class MailOut(StringPreference):
"""Mail out address""" """Mail out address of your AlekSIS instance."""
section = mail section = mail
name = "address" name = "address"
...@@ -125,7 +125,7 @@ class MailOut(StringPreference): ...@@ -125,7 +125,7 @@ class MailOut(StringPreference):
@site_preferences_registry.register @site_preferences_registry.register
class PrivacyURL(StringPreference): class PrivacyURL(StringPreference):
"""Link to privacy policy""" """Link to privacy policy of your AlekSIS instance."""
section = footer section = footer
name = "privacy_url" name = "privacy_url"
...@@ -137,7 +137,7 @@ class PrivacyURL(StringPreference): ...@@ -137,7 +137,7 @@ class PrivacyURL(StringPreference):
@site_preferences_registry.register @site_preferences_registry.register
class ImprintURL(StringPreference): class ImprintURL(StringPreference):
"""Link to imprint""" """Link to imprint of your AlekSIS instance."""
section = footer section = footer
name = "imprint_url" name = "imprint_url"
...@@ -224,6 +224,8 @@ class SchoolNameOfficial(StringPreference): ...@@ -224,6 +224,8 @@ class SchoolNameOfficial(StringPreference):
@site_preferences_registry.register @site_preferences_registry.register
class AuthenticationBackends(MultipleChoicePreference): class AuthenticationBackends(MultipleChoicePreference):
"""Authentication backends of your AlekSIS instance."""
section = auth section = auth
name = "backends" name = "backends"
default = None default = None
...@@ -236,6 +238,8 @@ class AuthenticationBackends(MultipleChoicePreference): ...@@ -236,6 +238,8 @@ class AuthenticationBackends(MultipleChoicePreference):
@site_preferences_registry.register @site_preferences_registry.register
class AvailableLanguages(MultipleChoicePreference): class AvailableLanguages(MultipleChoicePreference):
"""Available languages of your AlekSIS instance."""
section = internationalisation section = internationalisation
name = "languages" name = "languages"
default = [code[0] for code in settings.LANGUAGES] default = [code[0] for code in settings.LANGUAGES]
......
...@@ -9,10 +9,10 @@ register = template.Library() ...@@ -9,10 +9,10 @@ register = template.Library()
def add_class_to_el(value: str, arg: str) -> str: def add_class_to_el(value: str, arg: str) -> str:
"""Add a CSS class to every occurence of an element type. """Add a CSS class to every occurence of an element type.
:Example: :Example:
.. code-block:: jinja2 .. code-block:: jinja2
{{ mymodel.myhtmlfield|add_class_to_el:"ul,browser-default" }} {{ mymodel.myhtmlfield|add_class_to_el:"ul,browser-default" }}
""" """
el, cls = arg.split(",") el, cls = arg.split(",")
......
...@@ -58,7 +58,7 @@ Example configuration file:: ...@@ -58,7 +58,7 @@ Example configuration file::
# Users in group "admins" are superusers # Users in group "admins" are superusers
flags = { is_superuser = "cn=admins,ou=groups,dc=myschool,dc=edu" } flags = { is_superuser = "cn=admins,ou=groups,dc=myschool,dc=edu" }
# Search index, optional # Search index, optional
[default.search] [default.search]
backend = "whoosh" backend = "whoosh"
index = "/srv/www/aleksis/data/whoosh_index" index = "/srv/www/aleksis/data/whoosh_index"
......
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