mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-30 13:10:58 +02:00
devices like computers etc. usually have a hardware model/type. E.g. Dell Precision 5530. In order to use the same name consistently we have the option to select the model name from a drop down.
18 lines
496 B
Python
18 lines
496 B
Python
import django_tables2 as tables
|
|
|
|
|
|
class ComputersTable(tables.Table):
|
|
name = tables.Column('Computer', linkify=True)
|
|
description = tables.Column()
|
|
serialnumber = tables.Column()
|
|
owner = tables.Column()
|
|
manufacturer = tables.Column()
|
|
model = tables.Column()
|
|
location = tables.Column()
|
|
user = tables.Column('User', linkify=True)
|
|
installation_date = tables.Column()
|
|
os = tables.Column()
|
|
|
|
class Meta:
|
|
template_name = 'django_tables2/semantic.html'
|