Update Django Tables 2, change accessor from dot to __
This commit is contained in:
parent
819795c1f9
commit
361ea8cad3
6 changed files with 14 additions and 14 deletions
|
|
@ -41,9 +41,9 @@ class UserTable(tables.Table):
|
|||
"""
|
||||
alias = tables.Column()
|
||||
|
||||
section = tables.Column(accessor='profile.section')
|
||||
section = tables.Column(accessor='profile__section')
|
||||
|
||||
balance = tables.Column(accessor='note.balance', verbose_name=_("Balance"))
|
||||
balance = tables.Column(accessor='note__balance', verbose_name=_("Balance"))
|
||||
|
||||
def render_balance(self, record, value):
|
||||
return pretty_money(value)\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue