The function redirect will basically return an HttpResponseRedirect with the proper URL. I prefer to always use
this shortcut so my codebase remains consistent.
The advantages of using redirect instead of HttpResponseRedirect is that you can pass different types of arguments
and also it will save you from importing django.urlresolvers.reverse in your project’s views.py.
The possible arguments are:
A model instance. This will call the model’s get_absolute_url() method;