Skip to content

Commit 2b4656c

Browse files
committed
remove indexes from Award model meta class and update migration
1 parent 6495aae commit 2b4656c

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

backend/apps/owasp/migrations/0045_award.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ class Migration(migrations.Migration):
107107
"verbose_name": "Award",
108108
"verbose_name_plural": "Awards",
109109
"db_table": "owasp_awards",
110-
"indexes": [
111-
models.Index(fields=["category", "year"], name="owasp_award_category_year"),
112-
models.Index(fields=["-year"], name="owasp_award_year_desc"),
113-
models.Index(fields=["name"], name="owasp_award_name"),
114-
],
115110
},
116111
),
117112
]

backend/apps/owasp/models/award.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ class Category(models.TextChoices):
2323

2424
class Meta:
2525
db_table = "owasp_awards"
26-
indexes = [
27-
models.Index(fields=["category", "year"], name="owasp_award_category_year"),
28-
models.Index(fields=["-year"], name="owasp_award_year_desc"),
29-
models.Index(fields=["name"], name="owasp_award_name"),
30-
]
3126
verbose_name = "Award"
3227
verbose_name_plural = "Awards"
3328

0 commit comments

Comments
 (0)