Commit b98d4527 by Kálmán Viktor

fix 'Delete in' column in vm list

parent 83fdaf87
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
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 sign in to comment