Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix pagination on cohort management page. (#241)
Browse files Browse the repository at this point in the history
Fixes #238
  • Loading branch information
jonespm authored Apr 22, 2020
1 parent e6ff334 commit 8b43d5c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions management/templates/management/cohort_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@
<th data-filter="false" data-sorter="false">Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Code</th>
<th>Description</th>
<th>Group</th>
<th data-filter="false" data-sorter="false">Action</th>
</tr>
<tr>
{% include 'seumich/ts_pager.html' with colspan="6" %}
</tr>
</tfoot>
<tbody>
{% for cohort in object_list %}
<tr>
Expand Down
1 change: 0 additions & 1 deletion management/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class IndexView(StaffRequiredMixin, TemplateView):
class CohortListView(StaffRequiredMixin, ListView):
template_name = 'management/cohort_list.html'
model = Cohort
paginate_by = 50

def get_context_data(self, **kwargs):
context = super(CohortListView, self).get_context_data(**kwargs)
Expand Down

0 comments on commit 8b43d5c

Please sign in to comment.