Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b98d4527
authored
Oct 01, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 'Delete in' column in vm list
parent
83fdaf87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
circle/dashboard/tables.py
+4
-2
No files found.
circle/dashboard/tables.py
View file @
b98d4527
from
django_tables2
import
Table
,
A
from
django_tables2.columns
import
Column
,
LinkColumn
,
TemplateColumn
from
django_tables2.columns
import
LinkColumn
,
TemplateColumn
from
vm.models
import
Instance
from
django.utils.translation
import
ugettext_lazy
as
_
...
...
@@ -31,7 +31,9 @@ class VmListTable(Table):
time_of_suspend
=
TemplateColumn
(
'{{ record.time_of_suspend|timesince }}'
,
verbose_name
=
_
(
"Suspend in"
))
time_of_delete
=
Column
(
verbose_name
=
_
(
"Delete in"
))
time_of_delete
=
TemplateColumn
(
'{{ record.time_of_delete|timesince }}'
,
verbose_name
=
_
(
"Delete in"
))
class
Meta
:
model
=
Instance
...
...
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