Fixed support to Django 1.7 without breaking older ones