mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-01 21:50:58 +02:00
17 lines
404 B
Python
17 lines
404 B
Python
import django_tables2 as tables
|
|
|
|
from core.tables import CoreTable
|
|
|
|
from .models import User
|
|
|
|
|
|
class UsersTable(CoreTable):
|
|
id = tables.Column(visible=False)
|
|
name = tables.Column('User', linkify=True)
|
|
customer = tables.Column('Customer', linkify=True)
|
|
ad_groups = tables.ManyToManyColumn()
|
|
mail_groups = tables.ManyToManyColumn()
|
|
|
|
class Meta(CoreTable.Meta):
|
|
model = User
|