fixed compat bug with Django>=1.6

I just checked with both version sets of Django: <1.6 & >=1.6.