pointer: Remove pointer from UserProfile.

Most of the changes here are just that we no
longer need to provide a value for pointer
when we create UserProfile objects.
This commit is contained in:
Steve Howell
2020-07-03 13:03:33 +00:00
parent 50cbe1b19b
commit 0b65abcdf5
9 changed files with 24 additions and 39 deletions

View File

@@ -79,7 +79,7 @@ def create_user_profile(realm: Realm, email: str, password: Optional[str],
user_profile = UserProfile(is_staff=False, is_active=active,
full_name=full_name, short_name=short_name,
last_login=now, date_joined=now, realm=realm,
pointer=-1, is_bot=bool(bot_type), bot_type=bot_type,
is_bot=bool(bot_type), bot_type=bot_type,
bot_owner=bot_owner, is_mirror_dummy=is_mirror_dummy,
tos_version=tos_version, timezone=timezone,
tutorial_status=tutorial_status,