When trying to implement a custom get_success_url method in python, Django throws a TypeError: quote_from_bytes()error. For example:
class SomeView(generic.CreateView):
#...
def get_success_url(self):
return HttpResponseRedirect(reverse('index'))