Add login column
This commit is contained in:
parent
440f8582a4
commit
cfb0a09db1
|
@ -14,7 +14,12 @@ class UsersTable(CoreTable):
|
||||||
attrs={"td": {"class": "text-truncate", "style": "max-width: 150px;"}}
|
attrs={"td": {"class": "text-truncate", "style": "max-width: 150px;"}}
|
||||||
)
|
)
|
||||||
customer = tables.Column("Customer", linkify=True)
|
customer = tables.Column("Customer", linkify=True)
|
||||||
groups = tables.ManyToManyColumn()
|
logins = tables.ManyToManyColumn(
|
||||||
|
accessor=tables.A("user__login"), verbose_name="Logins"
|
||||||
|
)
|
||||||
|
groups = tables.ManyToManyColumn(
|
||||||
|
accessor=tables.A("group__login__user"), verbose_name="Groups"
|
||||||
|
)
|
||||||
delete = tables.LinkColumn(
|
delete = tables.LinkColumn(
|
||||||
"user_delete",
|
"user_delete",
|
||||||
text="delete",
|
text="delete",
|
||||||
|
|
Loading…
Reference in New Issue