Andreas Zweili
1dcec8e63a
replace the Device model with a a GeneralDevice model
...
This is required because otherwise when one gets all the Device
objects the sub classes get pulled as well. With a general class we
can use it really as a general device.
2017-12-25 16:23:42 +01:00
Andreas Zweili
34b91ca1bf
remove the hostname attribute from Computer
...
The device name should be used as a hostname for computers
2017-12-25 14:07:51 +01:00
Andreas Zweili
1e3d9d3bfb
sort date entries by their value
2017-12-25 13:19:58 +01:00
Andreas Zweili
3dee0e6445
fix the return value
2017-12-25 00:11:15 +01:00
Andreas Zweili
f6e6d56172
correct a variable
2017-12-25 00:11:06 +01:00
Andreas Zweili
46b68b992d
change size attributes to integer instead of floats
...
I don't need smaller sizes than one gigabyte
2017-12-25 00:10:14 +01:00
Andreas Zweili
704cfcecad
fix the return value in two relations
...
Because the computer attribute is actually an object we can't
reference the hostname directly.
2017-12-25 00:00:26 +01:00
Andreas Zweili
197229d972
add a ComputerCpuRelation class
...
To represent systems with multiple CPUs this class needed.
2017-12-24 23:57:30 +01:00
Andreas Zweili
5047e7965d
change the __str__ return value for the computer class to string
...
as the name suggests __str__ needs to be of type string.
2017-12-24 23:53:13 +01:00
Andreas Zweili
82a942aa5e
move the raid attribute to the ComputerDiskRelationship class
...
It makes more sense to have the RAID attribute in the relationship
class because if a system has multiple RAID configurations it's not
possible to represent it otherwise.
2017-12-24 23:51:46 +01:00
Andreas Zweili
eb4ea91d9b
remove the obsolete "GB" string and fix a variable
...
The GB string is obsolete because it already gets added in the
DiskSize class.
The attribute name is size_in_gb not size.
2017-12-24 23:47:53 +01:00
Andreas Zweili
388b69689d
add verbose names for all the hardware types
...
This make the items easier to understand in the admin interface.
2017-12-24 23:39:40 +01:00
Andreas Zweili
3d2398053b
add an empty line to conform with pep8
2017-12-22 23:59:59 +01:00
Andreas Zweili
96cae931c9
extend the time fields for a cronjob
2017-12-22 23:58:46 +01:00
Andreas Zweili
d43215b535
add a boolean to check for type ecc to the RAM class
2017-12-22 23:42:06 +01:00
Andreas Zweili
c682cb5b6b
remove the shebangs
...
They are not required for these files
2017-12-22 23:33:30 +01:00
Andreas Zweili
03bbfbc612
create an app for the inventory
2017-12-22 17:02:24 +01:00