diff --git a/uniticket/uni_ticket/migrations/0017_alter_ticketassignment_follow.py b/uniticket/uni_ticket/migrations/0017_alter_ticketassignment_follow.py new file mode 100644 index 00000000..fea2341d --- /dev/null +++ b/uniticket/uni_ticket/migrations/0017_alter_ticketassignment_follow.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.7 on 2023-11-09 01:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("uni_ticket", "0016_ticketassignment_uni_ticket__office__634a3f_idx"), + ] + + operations = [ + migrations.AlterField( + model_name="ticketassignment", + name="follow", + field=models.BooleanField(db_index=True, default=True), + ), + ] diff --git a/uniticket/uni_ticket/models.py b/uniticket/uni_ticket/models.py index b64496ea..9d5eab2c 100644 --- a/uniticket/uni_ticket/models.py +++ b/uniticket/uni_ticket/models.py @@ -1329,7 +1329,7 @@ class TicketAssignment(TimeStampedModel): blank=True, related_name="taken_by_operator", ) - follow = models.BooleanField(default=True) + follow = models.BooleanField(default=True, db_index=True) readonly = models.BooleanField(default=False) class Meta: