title: When I use HttpResponseRedirect I get TypeError: quote_from_bytes() expected bytes in Django
body: <p>When trying to implement a custom <code>get_success_url</code> method in python, Django throws a <code>TypeError: quote_from_bytes()</code>error. For example: </p>
  
  <pre><code>class SomeView(generic.CreateView):
  
      #... 
  
      def get_success_url(self):
          return HttpResponseRedirect(reverse('index'))
  </code></pre>