Fix db migrations.

Didn't do this properly in 2699a6101756a1c97b185e13e0e45afc457314e8.

Kludge as the model haven't changed, just moved from one app to another.

Change-Id: I57da68cdf62bbcde7dd18f84107346b9088b126c
Update tests for Django 1.5

Change-Id: Id114f17011c1088353995e23537db473c82f2e48