Skip to content

Commit

Permalink
Merge pull request #1373 from open-zaak/feature/status-index
Browse files Browse the repository at this point in the history
⚡ [#1367] add db index for Status.datum_status_gezet
  • Loading branch information
sergei-maertens committed Apr 21, 2023
2 parents 50ed3fd + 6cdab0f commit 275349b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-License-Identifier: EUPL-1.2
# Copyright (C) 2023 Dimpact
# Generated by Django 3.2.18 on 2023-04-18 14:53

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("zaken", "0023_alter_zaakidentificatie_identificatie"),
]

operations = [
migrations.AlterField(
model_name="status",
name="datum_status_gezet",
field=models.DateTimeField(
db_index=True,
help_text="De datum waarop de ZAAK de status heeft verkregen.",
),
),
]
2 changes: 1 addition & 1 deletion src/openzaak/components/zaken/models/zaken.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class Status(ETagMixin, models.Model):

# extra informatie
datum_status_gezet = models.DateTimeField(
help_text="De datum waarop de ZAAK de status heeft verkregen."
db_index=True, help_text="De datum waarop de ZAAK de status heeft verkregen."
)
statustoelichting = models.TextField(
max_length=1000,
Expand Down

0 comments on commit 275349b

Please sign in to comment.