Made quota names prettier. Fixed bug 979417.
Change-Id: Iaf87fa6d18d4c7c9309d1e60c3d8daf77f7ddfca
This commit is contained in:
parent
7b959c2066
commit
7a53d280bf
|
@ -20,8 +20,12 @@ class QuotaFilterAction(tables.FilterAction):
|
|||
return filter(comp, tenants)
|
||||
|
||||
|
||||
def get_quota_name(quota):
|
||||
return quota.name.replace("_", " ").title()
|
||||
|
||||
|
||||
class QuotasTable(tables.DataTable):
|
||||
name = tables.Column('name', verbose_name=_('Quota Name'))
|
||||
name = tables.Column(get_quota_name, verbose_name=_('Quota Name'))
|
||||
limit = tables.Column("limit", verbose_name=_('Limit'))
|
||||
|
||||
def get_object_id(self, obj):
|
||||
|
|
Loading…
Reference in New Issue