Solving DeprecationWarning in Django 1.6 // Django 1.7 compatibility