Update tests for Django 1.5

Change-Id: Id114f17011c1088353995e23537db473c82f2e48