zilencer: Handle deleted realms nicely at server/analytics.

This commit is contained in:
Mateusz Mandera
2023-12-15 16:01:04 +01:00
committed by Tim Abbott
parent 8102519242
commit fb5137f8b5
5 changed files with 97 additions and 5 deletions

View File

@@ -147,6 +147,9 @@ class RemoteRealm(models.Model):
registration_deactivated = models.BooleanField(default=False)
# Whether the realm has been deactivated on the remote server.
realm_deactivated = models.BooleanField(default=False)
# Whether we believe the remote server deleted this realm
# from the database.
realm_locally_deleted = models.BooleanField(default=False)
# When the realm was created on the remote server.
realm_date_created = models.DateTimeField()