mirror of
https://github.com/Fluffy-Bean/Fluffys-website.git
synced 2025-06-23 02:16:17 +00:00
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
This commit is contained in:
parent
9f7914319d
commit
1360792163
2 changed files with 7 additions and 8 deletions
|
@ -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})
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue