Merge "Made quota names prettier. Fixed bug 979417." into stable/essex
This commit is contained in:
commit
8f1ea73606
@ -20,8 +20,12 @@ class QuotaFilterAction(tables.FilterAction):
|
|||||||
return filter(comp, tenants)
|
return filter(comp, tenants)
|
||||||
|
|
||||||
|
|
||||||
|
def get_quota_name(quota):
|
||||||
|
return quota.name.replace("_", " ").title()
|
||||||
|
|
||||||
|
|
||||||
class QuotasTable(tables.DataTable):
|
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'))
|
limit = tables.Column("limit", verbose_name=_('Limit'))
|
||||||
|
|
||||||
def get_object_id(self, obj):
|
def get_object_id(self, obj):
|
||||||
|
Loading…
Reference in New Issue
Block a user