Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
7c5e54d2
Commit
7c5e54d2
authored
Aug 07, 2013
by
Giorgos Korfiatis
Browse files
astakos: Disable pagination and ordering in project tables
Prepare the tables for client-side ordering.
parent
627245bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/tables.py
View file @
7c5e54d2
...
...
@@ -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
=
(),
...
...
snf-astakos-app/astakos/im/views/projects.py
View file @
7c5e54d2
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment