From da459ee5c1e35b715c7eeed4d76b597952e133db Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 20 Jan 2021 22:48:41 +0000 Subject: [PATCH] web/quotes: format oops --- web/quotes/quotedb/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/quotes/quotedb/views.py b/web/quotes/quotedb/views.py index c01d05a4e2..3713ba63be 100644 --- a/web/quotes/quotedb/views.py +++ b/web/quotes/quotedb/views.py @@ -23,11 +23,11 @@ def show_quote(request, quote_id): class AddQuoteForm(ModelForm): class Meta: model = models.Quote - fields = ['quote'] + fields = ["quote"] def add_quote(request): - if request.method == 'POST': + if request.method == "POST": form = AddQuoteForm(request.POST) if form.is_valid(): new_quote = form.save(commit=False) @@ -38,4 +38,3 @@ def add_quote(request): form = AddQuoteForm() return render(request, "quotedb/new.html", {"form": form}) -