Make chat faster
This commit is contained in:
parent
f11d9b4b53
commit
2854ac97e9
11 changed files with 903 additions and 801 deletions
28
judge/migrations/0166_display_rank_index.py
Normal file
28
judge/migrations/0166_display_rank_index.py
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Generated by Django 3.2.18 on 2023-08-28 01:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("judge", "0165_drop_output_prefix_override"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="profile",
|
||||
name="display_rank",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("user", "Normal User"),
|
||||
("setter", "Problem Setter"),
|
||||
("admin", "Admin"),
|
||||
],
|
||||
db_index=True,
|
||||
default="user",
|
||||
max_length=10,
|
||||
verbose_name="display rank",
|
||||
),
|
||||
),
|
||||
]
|
|
@ -183,6 +183,7 @@ class Profile(models.Model):
|
|||
("setter", "Problem Setter"),
|
||||
("admin", "Admin"),
|
||||
),
|
||||
db_index=True,
|
||||
)
|
||||
mute = models.BooleanField(
|
||||
verbose_name=_("comment mute"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue