From 1360792163efe4094b001ad7e4c3647903ce212b Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:10:37 +0000 Subject: [PATCH] style: format code with black Format code with black This commit fixes the style issues introduced in 9f79143 according to the output from Black. Details: None --- articles/views.py | 7 +++---- website/settings.py | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/articles/views.py b/articles/views.py index eef0a8d..4dd1718 100644 --- a/articles/views.py +++ b/articles/views.py @@ -4,10 +4,9 @@ from articles.models import Article def article_list(request): - articles = (Article.objects.defer('body') - .filter(published=True) - .order_by("-date") - .all()) + articles = ( + Article.objects.defer("body").filter(published=True).order_by("-date").all() + ) return render(request, "views/articles.html", {"articles": articles}) diff --git a/website/settings.py b/website/settings.py index 087a782..cfc5457 100644 --- a/website/settings.py +++ b/website/settings.py @@ -34,7 +34,7 @@ DEBUG = False ALLOWED_HOSTS = ["*"] CSRF_TRUSTED_ORIGINS = [ - 'https://*.leggy.dev', + "https://*.leggy.dev", ] @@ -87,9 +87,9 @@ WSGI_APPLICATION = "website.wsgi.application" # https://docs.djangoproject.com/en/4.2/ref/settings/#databases DATABASES = { - 'default': { - 'ENGINE': "django.db.backends.sqlite3", - 'NAME': BASE_DIR / 'db.sqlite3', + "default": { + "ENGINE": "django.db.backends.sqlite3", + "NAME": BASE_DIR / "db.sqlite3", } }