zilencer: Sync name and authentication_methods on RemoteRealm.

This commit is contained in:
Mateusz Mandera
2023-11-29 23:48:46 +01:00
committed by Tim Abbott
parent 4ef6b7cc44
commit 9b1a495e2c
5 changed files with 38 additions and 1 deletions

View File

@@ -104,6 +104,10 @@ class RemoteRealm(models.Model):
# Value obtained's from the remote server's realm.host.
host = models.TextField()
name = models.TextField(default="")
authentication_methods = models.JSONField(default=dict)
org_type = models.PositiveSmallIntegerField(
default=Realm.ORG_TYPES["unspecified"]["id"],
choices=[(t["id"], t["name"]) for t in Realm.ORG_TYPES.values()],