From 3e2e352fb33fe9a4dc46e09456f049b71f46811b Mon Sep 17 00:00:00 2001 From: Le Duy Thuc Date: Sun, 15 Oct 2023 16:48:39 +0000 Subject: [PATCH] Remove OrganizationDetailView --- judge/views/organization.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/judge/views/organization.py b/judge/views/organization.py index 4105238e6..57b56f658 100644 --- a/judge/views/organization.py +++ b/judge/views/organization.py @@ -126,16 +126,6 @@ def get_object(self, queryset=None): return self.organization return super(BaseOrganizationListView, self).get_object(queryset) -# this is unused, comment out to avoid confusion -# class OrganizationDetailView(OrganizationMixin, DetailView): -# def get(self, request, *args, **kwargs): -# self.object = self.get_object() -# if self.object.slug != kwargs['slug']: -# return HttpResponsePermanentRedirect(reverse( -# request.resolver_match.url_name, args=(self.object.id, self.object.slug))) -# context = self.get_context_data(object=self.object) -# return self.render_to_response(context) - class OrganizationList(TitleMixin, ListView): model = Organization