realm_creation_form: Capture import_from if realm import enabled.

We store user's preference for `import_from` to be acted upon in
later commits.
This commit is contained in:
Aman Agrawal
2025-04-29 12:25:16 +05:30
committed by Tim Abbott
parent 80e76d24e9
commit 5d4142e056
11 changed files with 61 additions and 17 deletions

View File

@@ -50,6 +50,10 @@ class PreregistrationRealm(models.Model):
UserProfile, null=True, related_name="+", on_delete=models.SET_NULL
)
IMPORT_FROM_CHOICES = [
("none", "Don't import"),
("slack", "Import from Slack"),
]
data_import_metadata = models.JSONField(default=dict, encoder=DjangoJSONEncoder)