update a missing part in the documentation

This commit is contained in:
Andreas Zweili 2018-05-19 08:26:25 +02:00
parent 4a3475096e
commit 4a5dfa28ce
1 changed files with 12 additions and 12 deletions

View File

@ -357,7 +357,7 @@ We have to import each model we want to use.
#+BEGIN_SRC python :tangle ../network_inventory/inventory/admin.py
from django.contrib import admin
from inventory.models import (GeneralDevice, HoursInDay,
from .models import (GeneralDevice, HoursInDay,
MinutesInHour, Weekday, DayOfMonth,
Month, RamType, Ram, DiskType, DiskSize,
Disk, Architecture, CpuManufacturer,
@ -452,7 +452,7 @@ the templates.
#+BEGIN_SRC python :tangle ../network_inventory/inventory/views.py
from django.shortcuts import get_object_or_404, render
from django.views.generic import ListView
from inventory.models import (GeneralDevice, Computer, CronJob,
from .models import (GeneralDevice, Computer, CronJob,
ComputerRamRelation,
ComputerDiskRelation,
ComputerCpuRelation)