Bases: SingleTableMixin
, ListView
model
class-attribute
instance-attribute
table_class
class-attribute
instance-attribute
paginator_class
class-attribute
instance-attribute
paginator_class = LazyPaginator
table_pagination = {'per_page': 25}
template_name
class-attribute
instance-attribute
template_name = 'funds/reviewer_leaderboard_detail.html'
get_context_data
get_context_data(**kwargs)
Source code in hypha/apply/funds/views/reviewer_leaderboard.py
| def get_context_data(self, **kwargs):
obj = User.objects.get(pk=self.kwargs.get("pk"))
return super().get_context_data(object=obj, **kwargs)
|
get_table_data
Source code in hypha/apply/funds/views/reviewer_leaderboard.py
| def get_table_data(self):
return (
super()
.get_table_data()
.filter(author__reviewer_id=self.kwargs.get("pk"))
.select_related("submission")
)
|