Make migrations compatible with user model without `id` field

If you create a model deriving from auth.User its primary key field is `user_ptr_id` instead of `id`.