refactor according to PEP8
This commit is contained in:
parent
7531dd5912
commit
93dcacfd4c
|
@ -1,12 +1,12 @@
|
|||
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)
|
||||
|
||||
|
||||
class RamInLine(admin.StackedInline):
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
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):
|
||||
|
|
Loading…
Reference in New Issue