When I use HttpResponseRedirect I get TypeError: quote_from_bytes() expected bytes in Django
get_success_url
doesn't return an HttpResponseRedirect instead it should return the url you want to redirect to. So you can just return reverse('index')
:
def get_success_url(self):
return reverse('index')