Fixed migration to run in projects that use a custom User model.
Merge pull request #285 from ixc/django1.5

Fixed migration to run in projects that use a custom User model.