mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
To allow `custom_profile_field` to display in user profile popover, added new boolean field "display_in_profile_summary" in its model class. In `custom_profile_fields.py`, functions are edited as per conditions, like currently we can display max 2 `custom_profile_fields` except `LONG_TEXT` and `USER` type fields. Default external account custom profile fields made updatable for only this new field, as previous they were not updatable. Fixes part of: #21215
19 lines
435 B
Python
19 lines
435 B
Python
# Generated by Django 4.0.7 on 2022-09-19 17:28
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("zerver", "0411_alter_muteduser_muted_user_and_more"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="customprofilefield",
|
|
name="display_in_profile_summary",
|
|
field=models.BooleanField(default=False),
|
|
),
|
|
]
|