Skip to content

Commit

Permalink
[Scorecards] removed unused top performer view
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Feb 13, 2025
1 parent 95085df commit 2d6f18b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions scoring/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
views.CouncilMostImproved.as_view(),
name="council_most_improved",
),
path(
"councils/<slug:slug>/preview/top-performer",
views.CouncilPreviewTopPerfomer.as_view(),
name="council_top_performer_preview",
),
path("councils/<slug:slug>/", views.CouncilView.as_view(), name="council"),
path("sections/<str:code>/", views.SectionView.as_view(), name="section"),
path("sections/", views.SectionsView.as_view(), name="sections"),
Expand Down
14 changes: 0 additions & 14 deletions scoring/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,20 +676,6 @@ def get_context_data(self, **kwargs):
return context


@method_decorator(cache_control(**cache_settings), name="dispatch")
class CouncilPreviewTopPerfomer(DetailView):
model = Council
context_object_name = "council"
template_name = "scoring/council-top-performer-preview.html"

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
council = context.get("council")
context["page_title"] = council.name
context["plan_year"] = self.request.year
return context


@method_decorator(cache_control(**cache_settings), name="dispatch")
class SectionView(PrivateScorecardsAccessMixin, SearchAutocompleteMixin, DetailView):
model = PlanSection
Expand Down

0 comments on commit 2d6f18b

Please sign in to comment.