Added more functions in django_utils.py.