Made quota names prettier. Fixed bug 979417.

Change-Id: Iaf87fa6d18d4c7c9309d1e60c3d8daf77f7ddfca
This commit is contained in:
Gabriel Hurley 2012-04-11 15:32:01 -07:00 committed by Tres Henry
parent 7b959c2066
commit 7a53d280bf
1 changed files with 5 additions and 1 deletions

View File

@ -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):