LauraMayock / The-happy-reader

0 stars 1 forks source link

BUG: Text confirming the submission of review not working. #25

Closed LauraMayock closed 1 year ago

LauraMayock commented 1 year ago

As a user I can see clearly that me review has been submitted successfully so that I trust that it has been received the the blog owner

Tasks: [x] Run through the code to see where the error in the code is. [x] Pop up working successfully.

LauraMayock commented 1 year ago

Error found in the view section. There were spaces around the = sign "/add_review?submitted=True')`

def add_review(request): submitted = False if request.method == "POST": form = BookReview(request.POST) if form.is_valid(): form.save() return HttpResponseRedirect('/add_review?submitted=True')