Merge "Made quota names prettier. Fixed bug 979417." into stable/essex

This commit is contained in:
Jenkins 2012-05-11 08:37:50 +00:00 committed by Gerrit Code Review
commit 8f1ea73606
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):