Some table accessors weren't updated

This commit is contained in:
Yohann D'ANELLO 2020-09-01 19:04:35 +02:00
parent 05164636a1
commit d76aa3fec9
4 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
__pycache__ __pycache__
media media
db.sqlite3 db.sqlite3
.tox
.coverage

View File

@ -165,5 +165,5 @@ class ClubManagerTable(tables.Table):
'style': 'table-layout: fixed;' 'style': 'table-layout: fixed;'
} }
template_name = 'django_tables2/bootstrap4.html' template_name = 'django_tables2/bootstrap4.html'
fields = ('user', 'user.first_name', 'user.last_name', 'roles', ) fields = ('user', 'user__first_name', 'user__last_name', 'roles', )
model = Membership model = Membership

View File

@ -53,7 +53,7 @@ class RightsTable(tables.Table):
'style': 'table-layout: fixed;' 'style': 'table-layout: fixed;'
} }
template_name = 'django_tables2/bootstrap4.html' template_name = 'django_tables2/bootstrap4.html'
fields = ('user__last_name', 'user.first_name', 'user', 'club', 'roles', ) fields = ('user__last_name', 'user__first_name', 'user', 'club', 'roles', )
model = Membership model = Membership