update a missing part in the documentation
This commit is contained in:
parent
4a3475096e
commit
4a5dfa28ce
|
@ -357,14 +357,14 @@ We have to import each model we want to use.
|
||||||
|
|
||||||
#+BEGIN_SRC python :tangle ../network_inventory/inventory/admin.py
|
#+BEGIN_SRC python :tangle ../network_inventory/inventory/admin.py
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from inventory.models import (GeneralDevice, HoursInDay,
|
from .models import (GeneralDevice, HoursInDay,
|
||||||
MinutesInHour, Weekday, DayOfMonth,
|
MinutesInHour, Weekday, DayOfMonth,
|
||||||
Month, RamType, Ram, DiskType, DiskSize,
|
Month, RamType, Ram, DiskType, DiskSize,
|
||||||
Disk, Architecture, CpuManufacturer,
|
Disk, Architecture, CpuManufacturer,
|
||||||
Cpu, OperatingSystem, Raid, Computer,
|
Cpu, OperatingSystem, Raid, Computer,
|
||||||
ComputerDiskRelation,
|
ComputerDiskRelation,
|
||||||
ComputerCpuRelation,
|
ComputerCpuRelation,
|
||||||
ComputerRamRelation, Warranty, CronJob)
|
ComputerRamRelation, Warranty, CronJob)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** InLine classes
|
** InLine classes
|
||||||
|
@ -452,10 +452,10 @@ the templates.
|
||||||
#+BEGIN_SRC python :tangle ../network_inventory/inventory/views.py
|
#+BEGIN_SRC python :tangle ../network_inventory/inventory/views.py
|
||||||
from django.shortcuts import get_object_or_404, render
|
from django.shortcuts import get_object_or_404, render
|
||||||
from django.views.generic import ListView
|
from django.views.generic import ListView
|
||||||
from inventory.models import (GeneralDevice, Computer, CronJob,
|
from .models import (GeneralDevice, Computer, CronJob,
|
||||||
ComputerRamRelation,
|
ComputerRamRelation,
|
||||||
ComputerDiskRelation,
|
ComputerDiskRelation,
|
||||||
ComputerCpuRelation)
|
ComputerCpuRelation)
|
||||||
|
|
||||||
|
|
||||||
def device_details(request, device_id):
|
def device_details(request, device_id):
|
||||||
|
|
Loading…
Reference in New Issue