fix error in views
This commit is contained in:
parent
4e0aa95347
commit
4d7b82ecb0
|
@ -38,8 +38,7 @@ def index(request):
|
|||
"gif_list": gif_list,
|
||||
"banger_list": banger_list,
|
||||
}
|
||||
return render(request,
|
||||
"index.html", context)
|
||||
return render(request,"index.html", context)
|
||||
|
||||
def about(request):
|
||||
return render(request, "about.html", {"title": "About Me"})
|
||||
|
@ -48,7 +47,7 @@ def signbook(request):
|
|||
signer_list = Booksigner.objects.all()
|
||||
if request.method == 'POST':
|
||||
form = SignbookForm(request.POST)
|
||||
if form.is_valid():
|
||||
if form.is_valid() and form.validate_capcha():
|
||||
newsigner = {}
|
||||
newsigner["name"] = form.cleaned_data['name']
|
||||
newsigner["website"] = form.cleaned_data['website']
|
||||
|
|
Loading…
Reference in New Issue