mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-30 13:10:58 +02:00
17 lines
524 B
Python
17 lines
524 B
Python
#!/usr/bin/python3
|
|
from django.shortcuts import get_object_or_404, render
|
|
from .models import (Device, Computer, CronJob,
|
|
ComputerRamRelation,
|
|
ComputerDiskRelation,
|
|
ComputerCpuRelation)
|
|
|
|
|
|
def index(request):
|
|
device_list = Device.objects.all()
|
|
computer_list = Computer.objects.all()
|
|
|
|
return render(request,
|
|
'inventory/index.html',
|
|
{'device_list': category_list,
|
|
'computer_list': computer_list})
|