From 4a5dfa28cef5d68495de36bb130fc48d519bf794 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 19 May 2018 08:26:25 +0200 Subject: [PATCH] update a missing part in the documentation --- docs/docs.org | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/docs.org b/docs/docs.org index 985311d..7e94482 100644 --- a/docs/docs.org +++ b/docs/docs.org @@ -357,14 +357,14 @@ 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, - MinutesInHour, Weekday, DayOfMonth, - Month, RamType, Ram, DiskType, DiskSize, - Disk, Architecture, CpuManufacturer, - Cpu, OperatingSystem, Raid, Computer, - ComputerDiskRelation, - ComputerCpuRelation, - ComputerRamRelation, Warranty, CronJob) +from .models import (GeneralDevice, HoursInDay, + MinutesInHour, Weekday, DayOfMonth, + Month, RamType, Ram, DiskType, DiskSize, + Disk, Architecture, CpuManufacturer, + Cpu, OperatingSystem, Raid, Computer, + ComputerDiskRelation, + ComputerCpuRelation, + ComputerRamRelation, Warranty, CronJob) #+END_SRC ** InLine classes @@ -452,10 +452,10 @@ 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, - ComputerRamRelation, - ComputerDiskRelation, - ComputerCpuRelation) +from .models import (GeneralDevice, Computer, CronJob, + ComputerRamRelation, + ComputerDiskRelation, + ComputerCpuRelation) def device_details(request, device_id):