mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 01:48:21 +02:00
Distinguish new and old members
This commit is contained in:
@ -71,16 +71,13 @@ class WEIRegistrationTable(tables.Table):
|
||||
},
|
||||
)
|
||||
|
||||
def render_is_first_year(self, value):
|
||||
return _("yes") if value else _("no")
|
||||
|
||||
class Meta:
|
||||
attrs = {
|
||||
'class': 'table table-condensed table-striped table-hover'
|
||||
}
|
||||
model = WEIRegistration
|
||||
template_name = 'django_tables2/bootstrap4.html'
|
||||
fields = ('user', 'is_first_year',)
|
||||
fields = ('user', 'first_year',)
|
||||
row_attrs = {
|
||||
'class': 'table-row',
|
||||
'id': lambda record: "row-" + str(record.pk),
|
||||
|
Reference in New Issue
Block a user