From 3be480d1e7e626d8cbf966692189ac152a95343a Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Thu, 9 Mar 2023 14:32:18 +0800 Subject: [PATCH] fix: typo --- src/core/choices.py | 2 +- src/core/models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/choices.py b/src/core/choices.py index 8fded01f9..9fa3e11da 100644 --- a/src/core/choices.py +++ b/src/core/choices.py @@ -37,7 +37,7 @@ ('EXPERIENCED', _('Experienced')), ) -PERFER_TIME_CHOICES = ( +PREFER_TIME_CHOICES = ( ('DAY_ONE_MORNING', _('Day 1, September 2nd, 2023 Morning')), ('DAY_ONE_AFTERNOON', _('Day 1, September 2nd, 2023 Afternoon')), ('DAY_TWO_MORNING', _('Day 2, September 3rd, 2023 Morning')), diff --git a/src/core/models.py b/src/core/models.py index 1236bd407..e327cfa84 100644 --- a/src/core/models.py +++ b/src/core/models.py @@ -10,7 +10,7 @@ CATEGORY_CHOICES, LANGUAGE_CHOICES, PYTHON_LVL_CHOICES, - PERFER_TIME_CHOICES, + PREFER_TIME_CHOICES, RECORDING_POLICY_CHOICES, LIVING_IN_TAIWAN_CHOICES, LIVE_STREAM_POLICY_CHOICES, @@ -173,7 +173,7 @@ class EventInfo(models.Model): prefer_time = models.CharField( verbose_name=_('prefer event time'), max_length=32, - choices=PERFER_TIME_CHOICES, + choices=PREFER_TIME_CHOICES, ) living_in_taiwan = models.BooleanField(