fixed syntax error uncovered by Django 1.5