Commit 7c5e54d2 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

astakos: Disable pagination and ordering in project tables

Prepare the tables for client-side ordering.
parent 627245bd
......@@ -249,15 +249,19 @@ class UserProjectsTable(UserTable):
coerce=lambda x: truncatename(x, 25),
append=project_name_append,
args=(A('id'),),
orderable=False,
accessor='application.name')
issue_date = tables.DateColumn(verbose_name=_('Application'),
format=DEFAULT_DATE_FORMAT,
orderable=False,
accessor='application.issue_date')
start_date = tables.DateColumn(format=DEFAULT_DATE_FORMAT,
orderable=False,
accessor='application.start_date')
end_date = tables.DateColumn(verbose_name=_('Expiration'),
format=DEFAULT_DATE_FORMAT,
orderable=False,
accessor='application.end_date')
members_count_f = tables.Column(verbose_name=_("Members"),
empty_values=(),
......
......@@ -159,9 +159,6 @@ def project_list(request):
projects = Project.objects.user_accessible_projects(request.user)
table = get_user_projects_table(projects, user=request.user,
prefix="my_projects_")
RequestConfig(request,
paginate={"per_page": settings.PAGINATE_BY}).configure(table)
return object_list(
request,
projects,
......@@ -447,9 +444,6 @@ def project_search(request):
else:
table.caption = _('ALL PROJECTS')
RequestConfig(request,
paginate={"per_page": settings.PAGINATE_BY}).configure(table)
return object_list(
request,
projects,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment