Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
models: Add is_imported_stub field for UserProfile.
Sahil Batrad9aff41d8826
diff --git a/zerver/migrations/0759_userprofile_is_imported_stub.py b/zerver/migrations/0759_userprofile_is_imported_stub.pynew file mode 100644index 00000000000..4a5ed9a81e5--- /dev/null+++ b/zerver/migrations/0759_userprofile_is_imported_stub.py@@ -0,0 +1,17 @@+# Generated by Django 5.2.6 on 2025-10-08 10:03++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("zerver", "0758_remove_pushdevice_push_public_key_and_more"),+ ]++ operations = [+ migrations.AddField(+ model_name="userprofile",+ name="is_imported_stub",+ field=models.BooleanField(default=False),+ ),+ ]diff --git a/zerver/models/users.py b/zerver/models/users.pyindex 99bbf87d02e..c616f404081 100644--- a/zerver/models/users.py+++ b/zerver/models/users.py@@ -622,6 +622,9 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings):# imports and deleted users.is_mirror_dummy = models.BooleanField(default=False)+ # Flag used for imported users who have not activated their account.+ is_imported_stub = models.BooleanField(default=False)+# Users with this flag set are allowed to forge messages as sent by another# user and to send to private streams; also used for Jabber mirroring.can_forge_sender = models.BooleanField(default=False, db_index=True)