black formatting

This commit is contained in:
2023-01-08 00:09:46 +00:00
parent eba93d87b1
commit cd28dd177d
2 changed files with 6 additions and 11 deletions

View File

@@ -66,7 +66,7 @@ AUTHENTICATION_BACKENDS = [
"django.contrib.auth.backends.ModelBackend",
]
LOGIN_REDIRECT_URL = 'home'
LOGIN_REDIRECT_URL = "home"
LOGIN_URL = "/auth/login"
@@ -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"]},
],
},
}

View File

@@ -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]