SIO-1214 Django 1.5 migration

Change-Id: I1016daacd5ac9bd6afc2ad6a86c65e56b44b6426