mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
groups: Remove id_field_name field from GroupPermissionSetting.
id_field_name was being used only to set the initial dummy values for realm settings. We can directly add "_id" to the setting name instead of having an extra id_field_name field.
This commit is contained in:
@@ -245,8 +245,8 @@ def do_create_realm(
|
||||
|
||||
# For now a dummy value of -1 is given to groups fields which
|
||||
# is changed later before the transaction is committed.
|
||||
for permission_configuration in Realm.REALM_PERMISSION_GROUP_SETTINGS.values():
|
||||
setattr(realm, permission_configuration.id_field_name, -1)
|
||||
for setting_name in Realm.REALM_PERMISSION_GROUP_SETTINGS:
|
||||
setattr(realm, setting_name + "_id", -1)
|
||||
|
||||
realm.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user