Skip to content

Commit

Permalink
fix: db indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 11, 2024
1 parent 23a5741 commit 1fac126
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions uniticket/uni_ticket/migrations/0022_alter_ticket_is_closed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.16 on 2024-11-11 16:19

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('uni_ticket', '0021_alter_task_options_alter_ticketcategorytask_options_and_more'),
]

operations = [
migrations.AlterField(
model_name='ticket',
name='is_closed',
field=models.BooleanField(default=False),
),
]
2 changes: 1 addition & 1 deletion uniticket/uni_ticket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ class Ticket(SavedFormContent):
)
input_module = models.ForeignKey(
TicketCategoryModule, on_delete=models.PROTECT)
is_closed = models.BooleanField(default=False, db_index=True)
is_closed = models.BooleanField(default=False)
closed_date = models.DateTimeField(blank=True, null=True)
assigned_date = models.DateTimeField(blank=True, null=True, db_index=True)
closed_by = models.ForeignKey(
Expand Down

0 comments on commit 1fac126

Please sign in to comment.