use django_tables2 for transactionTemplate
This commit is contained in:
parent
62573a35df
commit
f4fe0c9866
3 changed files with 19 additions and 22 deletions
|
|
@ -54,3 +54,14 @@ class AliasTable(tables.Table):
|
|||
'td': {'class': 'col-sm-2'},
|
||||
'a': {'class': 'btn btn-danger'}},
|
||||
text='delete', accessor='pk')
|
||||
|
||||
class ButtonTable(tables.Table):
|
||||
class Meta:
|
||||
attrs = {
|
||||
'class':
|
||||
'table table condensed table-striped table-hover'
|
||||
}
|
||||
model = TransactionTemplate
|
||||
|
||||
def render_amount(self, value):
|
||||
return pretty_money(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue