network_inventory/computers/tables.py
Andreas Zweili 441fda2e1f add HardwareModel to the device app
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.
2020-02-14 20:26:24 +01:00

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'