Skip to content

Commit

Permalink
Made quota names prettier. Fixed bug 979417.
Browse files Browse the repository at this point in the history
Change-Id: Id772087c4aaddc8b036a1bd740c5a342c26108ec
  • Loading branch information
gabrielhurley committed Apr 11, 2012
1 parent e36dbd2 commit ac0b1f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion horizon/dashboards/syspanel/quotas/tables.py
Expand Up @@ -20,8 +20,12 @@ def comp(tenant):
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):
Expand Down

0 comments on commit ac0b1f4

Please sign in to comment.