Minor adjustment to django view