From 6c122db3dff994345e53135e516e976c54a5c50a Mon Sep 17 00:00:00 2001
From: Vaibhav Mule <vaibhavmule135@gmail.com>
Date: Wed, 18 Mar 2020 18:06:08 +0530
Subject: [PATCH] checking if Django Tables 2 works

---
 hypha/apply/funds/tables.py | 8 ++++----
 hypha/apply/funds/views.py  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/hypha/apply/funds/tables.py b/hypha/apply/funds/tables.py
index cff5208cc..719b87fba 100644
--- a/hypha/apply/funds/tables.py
+++ b/hypha/apply/funds/tables.py
@@ -87,10 +87,10 @@ class SubmissionsTable(tables.Table):
         return qs, True
 
     # For when we update to Django Tables2 2.x.
-    # def get_column_class_names(self, classes_set, bound_column):
-    #     classes_set = super(SubmissionsTable, self).get_column_class_names(classes_set, bound_column)
-    #     classes_set.add(bound_column.name)
-    #     return classes_set
+    def get_column_class_names(self, classes_set, bound_column):
+        classes_set = super(SubmissionsTable, self).get_column_class_names(classes_set, bound_column)
+        classes_set.add(bound_column.name)
+        return classes_set
 
 
 class ReviewerSubmissionsTable(SubmissionsTable):
diff --git a/hypha/apply/funds/views.py b/hypha/apply/funds/views.py
index 66d4aa8f2..d71f13752 100644
--- a/hypha/apply/funds/views.py
+++ b/hypha/apply/funds/views.py
@@ -92,7 +92,7 @@ class BaseAdminSubmissionsTable(SingleTableMixin, FilterView):
     table_class = AdminSubmissionsTable
     filterset_class = SubmissionFilterAndSearch
     filter_action = ''
-    table_pagination = {'klass': LazyPaginator}
+    table_pagination = {'paginator_class': LazyPaginator}
 
     excluded_fields = []
 
-- 
GitLab