Fix issue with custom user model in order migration