Skip to content

Commit

Permalink
home: views: contact_form: Redirect to dashboard instead of home
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Oct 5, 2023
1 parent d15e7c4 commit f457f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def contact_form(request):
except BadHeaderError:
return HttpResponse('Mail could not be sent. Try again later!!')
messages.success(request, "Message sent successfully")
return redirect('home')
return redirect('../dashboard')
elif request.method == 'GET':
form = ContactForm()
return render(request, 'dashboard/contact_form.html', context={'form': form})
Expand Down

0 comments on commit f457f9c

Please sign in to comment.