Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
No need for this to be a property
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhowbrook committed Jan 4, 2024
1 parent c291ad0 commit d60c792
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tbx/courses/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@


class CourseLandingPage(utils_models.SocialFields, wagtail_models.Page):
# stubbed out for now, is incoming

# Don't offer a theme style, just set to dark
theme = "dark"
template = "patterns/pages/courses/course_landing_page.html"

strapline = models.CharField(
Expand Down Expand Up @@ -58,11 +58,6 @@ class CourseLandingPage(utils_models.SocialFields, wagtail_models.Page):
index.SearchField("strapline"),
]

@property
def theme(self):
# Don't offer a theme style, just set to dark
return "dark"

def _get_subpages(self):
subpages = (
CourseDetailPage.objects.live()
Expand Down

0 comments on commit d60c792

Please sign in to comment.