A quick fix to solve Django 1.5 and 1.6 compatibility issues