I don't like this change. Before it was possible to use this function in a not request-context. For example from python manage.py shell. Now you need a view instance.