Skip to content
Snippets Groups Projects
Commit 30d50fb0 authored by George Hickman's avatar George Hickman Committed by Fredrik Jonsson
Browse files

Allow ordering of all columns but most_recent

most_recent is a Review object and it's not obvious what about that
column would be orderable.
parent cb7059b0
No related branches found
No related tags found
No related merge requests found
......@@ -365,6 +365,7 @@ class RoundsFilter(filters.FilterSet):
class LeaderboardTable(tables.Table):
full_name = tables.Column(verbose_name="Reviewer")
most_recent = tables.Column(orderable=False)
class Meta:
fields = [
......@@ -376,7 +377,6 @@ class LeaderboardTable(tables.Table):
'most_recent',
]
model = User
orderable = False
def render_most_recent(self, record):
review = (Review.objects.filter(author__reviewer=record)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment