web/quotes: format oops
This commit is contained in:
parent
2d634def1c
commit
da459ee5c1
1 changed files with 2 additions and 3 deletions
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in a new issue