Skip to content

Commit

Permalink
Implement organization request log tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kiritofeng authored and Xyene committed Oct 27, 2019
1 parent b56f159 commit d1d1683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions judge/views/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ class OrganizationRequestLog(OrganizationRequestBaseView):
tab = 'log'
template_name = 'organization/requests/log.html'

def get(self, request, *args, **kwargs):
self.object = self.get_object()
context = self.get_context_data(object=self.object)
return self.render_to_response(context)

def get_context_data(self, **kwargs):
context = super(OrganizationRequestLog, self).get_context_data(**kwargs)
context['requests'] = self.object.requests.filter(state__in=self.states)
Expand Down

0 comments on commit d1d1683

Please sign in to comment.