Skip to content

Commit

Permalink
Remove OrganizationDetailView
Browse files Browse the repository at this point in the history
  • Loading branch information
leduythuccs committed Oct 15, 2023
1 parent e07b29b commit 3e2e352
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions judge/views/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e2e352

Please sign in to comment.