From 905a184aeb69b94a44cff0592ef88dfc1f77121b Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sat, 9 Nov 2024 17:08:25 -0500 Subject: [PATCH] drop(core): remove get_subject_short_display --- core/models.py | 17 ----------------- core/templates/core/unit_list.html | 1 - 2 files changed, 18 deletions(-) diff --git a/core/models.py b/core/models.py index 5b86c099..f0e2664d 100644 --- a/core/models.py +++ b/core/models.py @@ -178,23 +178,6 @@ class Meta: def __str__(self) -> str: return self.name - @property - def get_subject_short_display(self): - if self.subject == "A": - return "Algebra" - elif self.subject == "C": - return "Combo" - elif self.subject == "G": - return "Geom" - elif self.subject == "N": - return "Number theory" - elif self.subject == "M": - return "Misc" - elif self.subject == "F": - return "Func eqn" - elif self.subject == "K": - return "Secret" - @property def artwork_basename(self) -> str | None: return None if not self.artwork else os.path.basename(self.artwork.name) diff --git a/core/templates/core/unit_list.html b/core/templates/core/unit_list.html index e963a219..5e3bffc2 100644 --- a/core/templates/core/unit_list.html +++ b/core/templates/core/unit_list.html @@ -68,7 +68,6 @@

{% endif %}

- {{ unitgroup.get_subject_short_display }}: {% for unit in units %} {% if unit.has_pset %} {{ unit.code }}