Migrated project to comply with Django 1.5.1