mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Black 23 enforces some slightly more specific rules about empty line counts and redundant parenthesis removal, but the result is still compatible with Black 22. (This does not actually upgrade our Python environment to Black 23 yet.) Signed-off-by: Anders Kaseorg <anders@zulip.com>
21 lines
506 B
Python
21 lines
506 B
Python
from django.db import migrations, models
|
|
from django.db.models import Q
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("zerver", "0081_make_emoji_lowercase"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddIndex(
|
|
model_name="usermessage",
|
|
index=models.Index(
|
|
"user_profile",
|
|
"message",
|
|
condition=Q(flags__andnz=2),
|
|
name="zerver_usermessage_starred_message_id",
|
|
),
|
|
),
|
|
]
|