Skip to content

Commit 6673f32

Browse files
committed
Apply rabbit's suggestion
1 parent 1fbe17d commit 6673f32

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Generated by Django 5.2.4 on 2025-08-26 01:52
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("owasp", "0049_event_calendar_id_event_channel_id_event_member_and_more"),
9+
("slack", "0018_conversation_sync_messages"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="event",
15+
name="status",
16+
field=models.CharField(
17+
choices=[
18+
("confirmed", "Confirmed"),
19+
("tentative", "Tentative"),
20+
("cancelled", "Cancelled"),
21+
],
22+
default="confirmed",
23+
max_length=11,
24+
verbose_name="Status",
25+
),
26+
),
27+
migrations.AddIndex(
28+
model_name="event",
29+
index=models.Index(fields=["type"], name="event_type_idx"),
30+
),
31+
]

backend/apps/owasp/models/event.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Meta:
2929
db_table = "owasp_events"
3030
indexes = [
3131
models.Index(fields=["-start_date"], name="event_start_date_desc_idx"),
32+
models.Index(fields=["type"], name="event_type_idx"),
3233
]
3334
verbose_name_plural = "Events"
3435

@@ -51,7 +52,7 @@ class Status(models.TextChoices):
5152

5253
CONFIRMED = "confirmed", "Confirmed"
5354
TENTATIVE = "tentative", "Tentative"
54-
CANCELED = "canceled", "Canceled"
55+
CANCELLED = "cancelled", "Cancelled"
5556

5657
category = models.CharField(
5758
verbose_name="Category",

0 commit comments

Comments
 (0)