[bugfix] changes for removing Django 1.5 depracation warnings