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
|
|
@ -9,9 +9,9 @@ class FutureUserTable(tables.Table):
|
|||
"""
|
||||
Display the list of pre-registered users
|
||||
"""
|
||||
phone_number = tables.Column(accessor='profile.phone_number')
|
||||
phone_number = tables.Column(accessor='profile__phone_number')
|
||||
|
||||
section = tables.Column(accessor='profile.section')
|
||||
section = tables.Column(accessor='profile__section')
|
||||
|
||||
class Meta:
|
||||
attrs = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue