Converting Django 1.3-style code to Django 1.4+-style code.