diff --git a/fet2020/fet2020/settings.py b/fet2020/fet2020/settings.py index 215e8e14..6bec15a0 100644 --- a/fet2020/fet2020/settings.py +++ b/fet2020/fet2020/settings.py @@ -66,7 +66,7 @@ AUTHENTICATION_BACKENDS = [ "django.contrib.auth.backends.ModelBackend", ] -LOGIN_REDIRECT_URL = 'home' +LOGIN_REDIRECT_URL = "home" LOGIN_URL = "/auth/login" @@ -103,7 +103,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "files/") MEDIA_URL = "files/" -# GLOBALIZATION +# GLOBALIZATION LANGUAGE_CODE = "de-at" LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")] TIME_ZONE = "CET" @@ -317,7 +317,7 @@ CKEDITOR_CONFIGS = { "-", "Blockquote", "CreateDiv", - ], + ], }, "/", { @@ -327,15 +327,9 @@ CKEDITOR_CONFIGS = { "JustifyCenter", "JustifyRight", "JustifyBlock", - ], - }, - { "name": "links", - "items": [ - "Link", - "Unlink", - "Anchor" - ] + ], }, + {"name": "links", "items": ["Link", "Unlink", "Anchor"]}, ], }, } diff --git a/fet2020/fet2020/utils.py b/fet2020/fet2020/utils.py index abea0648..221f8073 100644 --- a/fet2020/fet2020/utils.py +++ b/fet2020/fet2020/utils.py @@ -25,5 +25,6 @@ def add_log_action(request, form, app_label, model, add=True): change_message=change_message, ) + def create_random_id(): return str(uuid.uuid4())[:8]