Skip to content

Commit

Permalink
add default index
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 19, 2024
1 parent 5287c71 commit 051b152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edc_qareports/model_mixins/qa_report_model_mixin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.contrib.sites.models import Site
from django.db import models
from django.db.models import DO_NOTHING
from django.db.models import DO_NOTHING, Index

from .qa_reports_permissions import qa_reports_permissions

Expand All @@ -18,3 +18,4 @@ class QaReportModelMixin(models.Model):
class Meta:
abstract = True
default_permissions = qa_reports_permissions
indexes = [Index(fields=["subject_identifier", "site"])]

0 comments on commit 051b152

Please sign in to comment.