migration with custom user model

This PR solves the problem 'django.db.utils.ProgrammingError: relation "auth_user" does not exist' with migration if used a custom user model.