Commit Graph

840 Commits

Author SHA1 Message Date
Andreas Zweili e3689f6d16 add a Manufacturer detail view 2020-06-08 21:09:05 +02:00
Andreas Zweili f3a0d77168 add get_absolute_url method to DeviceManufacturer model 2020-06-08 21:08:16 +02:00
Andreas Zweili 459771924c move the description field to the base Company model 2020-06-08 21:07:40 +02:00
Andreas Zweili 180124d641 extend notes 2020-06-08 17:05:57 +02:00
Andreas Zweili afd1320a91 Merge branch 'master' into clean-out-computer-forms 2020-06-08 17:03:46 +02:00
Andreas Zweili e79eba2828 show all models in the admin interface
Since we decided to create many forms in the frontend the admin interface
should really be a way to access all models even the ones which aren't
accessible from the front end.
2020-06-08 17:02:15 +02:00
Andreas Zweili 71c84c51d2 clean out the docker-compose file 2020-06-08 17:01:55 +02:00
Andreas Zweili b99aedce54 set the settings variable before starting the docker container
When you first set the variable for the local settings file it will overwrite
the settings required for the docker container. Therefore I'm setting them
explicitly in the Makefile. Shouldn't be a problem on a production system.
2020-06-08 17:00:16 +02:00
Andreas Zweili c1abc5a09f extend the device manufacturer model 2020-06-08 16:56:45 +02:00
Andreas Zweili 490ac6d2cf make cancel go one page back 2020-06-02 06:15:58 +02:00
Andreas Zweili 320e5d449b return to the previous page after the form view 2020-06-02 06:15:31 +02:00
Andreas Zweili ef8fbf1b1c fix the test_computer_update_form test 2020-05-31 15:50:29 +02:00
Andreas Zweili b3e3acd4c9 change the test command 2020-05-31 15:50:19 +02:00
Andreas Zweili 4ff158a866 return to previous page after DeviceUpdateView 2020-05-27 22:50:29 +02:00
Andreas Zweili 52d438a96f add tests for the computer views 2020-05-26 23:26:44 +02:00
Andreas Zweili 94381045c4 add ComputerDeleteView 2020-05-26 23:26:31 +02:00
Andreas Zweili 19eae6768a remove the various formsets from the computer forms
The formsets are currently just too much of a hasle. I can do 90% of the
functionality I want without them and don't have problems with adding a new
relationship everytime I'm updating the computer object.
2020-05-26 23:25:21 +02:00
Andreas Zweili 7336aac441 clean out the docker-compose file 2020-05-26 23:23:50 +02:00
Andreas Zweili b5b38066bd extend notes 2020-05-26 23:23:29 +02:00
Andreas Zweili 58ee81791e add test_computer_create_view 2020-05-26 22:37:18 +02:00
Andreas Zweili d2784a6534 match string representations to the project standard 2020-05-26 22:26:30 +02:00
Andreas Zweili 2bfe3f6aee add comments 2020-05-26 22:26:22 +02:00
Andreas Zweili ee2af48a2c add a test for warranties with a duration > 365 days 2020-05-26 22:25:51 +02:00
Andreas Zweili d125937b10 remove the superuser property from the warranty view tests 2020-05-26 22:13:54 +02:00
Andreas Zweili 5610e8d1ca change the string representation for raid to the project standard 2020-05-26 22:09:47 +02:00
Andreas Zweili b202013841 extend the license test to include computer licenses 2020-05-26 22:08:49 +02:00
Andreas Zweili 5c907f7897 unify the license count 2020-05-25 22:57:30 +02:00
Andreas Zweili 875be1a3b7 add test_device_in_net_delete_view 2020-05-25 21:52:58 +02:00
Andreas Zweili 653db0134a add test_device_in_net_update_view 2020-05-25 21:52:45 +02:00
Andreas Zweili a29f04b62b add test_device_in_net_create_view 2020-05-25 21:52:31 +02:00
Andreas Zweili e31d2a793f add test_warranty_delete_view 2020-05-25 21:35:06 +02:00
Andreas Zweili e0c4347894 add test_warranty_update_view 2020-05-25 21:34:52 +02:00
Andreas Zweili 8a94679872 convert the tests to use the test client
using the test client ensures that the whole stack gets tested and not just the
view.
2020-05-24 22:20:18 +02:00
Andreas Zweili b3fde54abe add test for WarrantyCreateView 2020-05-24 21:58:26 +02:00
Andreas Zweili d42281ec08 add success_url to DeviceUpdateView 2020-05-24 21:56:43 +02:00
Andreas Zweili b5a267fa88 add test for device_update_view 2020-05-24 21:54:14 +02:00
Andreas Zweili f56198117c remove test for absent device
we don't need to test that Django is doing its job.
2020-05-24 21:53:28 +02:00
Andreas Zweili 57139bd41b add tests for device create and delete view 2020-05-24 21:12:52 +02:00
Andreas Zweili 288c4fdd25 add favicon 2020-05-24 18:38:23 +02:00
Andreas Zweili 15091da2ef rename the customer form view tests file 2020-05-24 18:05:44 +02:00
Andreas Zweili d0bb64c889 extend notes 2020-05-24 17:58:50 +02:00
Andreas Zweili 37915ad039 add a button to create a customer 2020-05-23 14:18:16 +02:00
Andreas Zweili 61bbe30a3d add a Cancel button to the computer_create template 2020-05-04 09:41:22 +02:00
Andreas Zweili a8296397a8 add a Cancel button 2020-05-04 09:40:18 +02:00
Andreas Zweili f96b51e06c udpate notes 2020-05-03 22:21:02 +02:00
Andreas Zweili 59fa44f4a4 add a DeviceInNetDeleteView 2020-05-03 22:18:16 +02:00
Andreas Zweili 8b48110d79 add a DeviceInNetUpdateView 2020-05-03 22:13:47 +02:00
Andreas Zweili fd14dcd748 display the IP status again 2020-05-03 22:13:10 +02:00
Andreas Zweili 696356bd8a remove the nets property from the Device model
since we remove the grouping function from the device details we don't need it
anmore.
2020-05-03 22:11:44 +02:00
Andreas Zweili e1a5c572d8 move each IP into it's own table row
there where too many complications with creating the urls and the various
buttons. This way may be a bit less pretty but for the moments it's a much
stabler way
2020-05-03 22:10:11 +02:00