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
673f93e24e
register the ComputerAdmin class in the admin interface
2017-12-25 00:09:41 +01:00
Andreas Zweili
1776c1abd9
remove the relations from the admin interface
...
The items can get added trough the computer form.
2017-12-25 00:09:06 +01:00
Andreas Zweili
b6ca7ed726
add additional fields to the computer list
2017-12-25 00:08:45 +01:00
Andreas Zweili
2df23bcfdd
remove the additional input fields from the computer form
...
Since it gives cleaner view I'm removing the additional input fields
for RAM, CPUs and disks. In addition it's usually not necessary to add
many different types of these items.
2017-12-25 00:07:19 +01:00
Andreas Zweili
52fa53e0df
correct the verbose name
...
In the user facing side Ram should be written RAM
2017-12-25 00:02:13 +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
56be9c59e2
add the verbose name to the ComputerDiskRelation
...
Forgot to commit this in the docs file
2017-12-24 23:59:10 +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
e5a99646aa
change the return value to string
...
Return values must be strings.
2017-12-24 23:44:27 +01:00
Andreas Zweili
6b99df109e
fix the return value of the Ram class
2017-12-24 23:43:41 +01:00
Andreas Zweili
c8ba021a56
change gigabytes to integere instead of float
...
I first it would make sense to save gigabytes as floating numbers.
However in practice I'm not really interested in anything smaller than
a gigabyte.
2017-12-24 23:41:15 +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
3ccbdb8d6d
add a simple bash script to automate the setup of the project
2017-12-24 23:36:31 +01:00
Andreas Zweili
de22447f0e
WIP vagrant file
2017-12-23 11:44:30 +01:00
Andreas Zweili
40482866dc
extend the .gitignore file
2017-12-23 00:43:08 +01:00
Andreas Zweili
561ae47796
ignore the database
2017-12-23 00:42:01 +01:00
Andreas Zweili
68b80d4ebc
add descriptions for a all the models
2017-12-23 00:00:37 +01:00
Andreas Zweili
3d2398053b
add an empty line to conform with pep8
2017-12-22 23:59:59 +01:00
Andreas Zweili
6cec7c6c50
rename the inline classes
2017-12-22 23:59:40 +01:00
Andreas Zweili
96cae931c9
extend the time fields for a cronjob
2017-12-22 23:58:46 +01:00
Andreas Zweili
34c05611f4
add a values attribute to Weekday and DayOfMonth
2017-12-22 23:47:18 +01:00
Andreas Zweili
8d94a1edc9
add a model for days in a month
2017-12-22 23:43:10 +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
a74740228e
split the models into smaller code blocks
2017-12-22 23:38:34 +01:00
Andreas Zweili
7223560a9f
add a description for Weekdays, DayOfMonth and Month
2017-12-22 23:35:08 +01:00
Andreas Zweili
fdc91ab9da
split the models into smaller code blocks
2017-12-22 23:34:40 +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
a479a76c6f
add a general description of the models
2017-12-22 23:32:26 +01:00
Andreas Zweili
03bbfbc612
create an app for the inventory
2017-12-22 17:02:24 +01:00
Andreas Zweili
30a20c2697
add an erd
2017-12-22 17:01:10 +01:00
Andreas Zweili
c1dad8a61d
add models to the docs.org file
2017-12-22 14:13:51 +01:00
Andreas Zweili
c7be7ab977
change markdown syntax to org-mode syntax
2017-12-22 07:41:20 +01:00
Andreas Zweili
cf6a2085be
make the readme to an org-mode file
2017-12-22 07:40:40 +01:00
Andreas Zweili
cacb5d0b59
add a docs file
2017-12-22 07:40:13 +01:00
Andreas Zweili
e8276c789a
start the django project
2017-12-21 23:33:47 +01:00
Andreas Zweili
8e4410ab9c
initialize a vagrant environment
2017-12-21 23:33:26 +01:00
Andreas Zweili
e791af71bd
add a requirements file
2017-12-21 23:33:18 +01:00
Andreas Zweili
94a82f93e0
add venv directory to the ignore file
2017-12-21 23:32:56 +01:00
Andreas Zweili
d05a54891f
Initial commit
2017-12-21 23:11:33 +01:00