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__
media
db.sqlite3
.tox
.coverage

View File

@ -165,5 +165,5 @@ class ClubManagerTable(tables.Table):
'style': 'table-layout: fixed;'
}
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

View File

@ -5,7 +5,7 @@ from datetime import datetime
from django import forms
from django.contrib.contenttypes.models import ContentType
from django.forms import CheckboxSelectMultiple
from django.utils.timezone import make_aware
from django.utils.timezone import make_aware
from django.utils.translation import gettext_lazy as _
from note_kfet.inputs import Autocomplete, AmountInput, DateTimePickerInput

View File

@ -53,7 +53,7 @@ class RightsTable(tables.Table):
'style': 'table-layout: fixed;'
}
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