models: Fix comment above INVITE_AS dict.

The comment mentioned the values in this dict to be consistent
wth values in settings_config.invited_as_values.
But settings_config.invited_as_values was replaced by
settings_config.user_role_values in 136c005f3f, so
updated the comment accordingly.
This commit is contained in:
sahil839
2021-04-30 23:31:44 +05:30
committed by Tim Abbott
parent e669818544
commit 3c66131fae

View File

@@ -1707,9 +1707,8 @@ class PreregistrationUser(models.Model):
# objects created as part of realm creation.
realm: Optional[Realm] = models.ForeignKey(Realm, null=True, on_delete=CASCADE)
# Changes to INVITED_AS should also be reflected in
# settings_invites.invited_as_values in
# static/js/settings_invites.js
# These values should be consistent with the values
# in settings_config.user_role_values.
INVITE_AS = dict(
REALM_OWNER=100,
REALM_ADMIN=200,