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 12, 2024
1 parent adcdb22 commit 50f8e39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.16 on 2024-11-12 08:44

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('uni_ticket', '0023_remove_ticketassignment_uni_ticket__office__f42ab9_idx_and_more'),
]

operations = [
migrations.AddIndex(
model_name='ticket',
index=models.Index(fields=['id', 'is_closed', 'created'], name='uni_ticket__id_1dfb83_idx'),
),
]
1 change: 1 addition & 0 deletions uniticket/uni_ticket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ class Meta:
]
verbose_name = _("Ticket")
verbose_name_plural = _("Ticket")
indexes = [models.Index(fields=["id", "is_closed", "created"])]

@property
def taken_date(self):
Expand Down

0 comments on commit 50f8e39

Please sign in to comment.