Commit Graph

975 Commits

Author SHA1 Message Date
Andreas Zweili 28ce263a99 expand fixtures 2021-12-30 16:10:04 +01:00
Andreas Zweili 6fc66ffb78 limit the dropdowns in device and computer forms 2021-12-30 14:57:47 +01:00
Andreas Zweili c2104b23f7 fix the computer_update_view 2021-12-29 19:18:30 +01:00
Andreas Zweili 9cc47c361b replace the computer_update_view with a FBV 2021-12-29 19:12:32 +01:00
Andreas Zweili a1e4f8fc5a check the dates in the Warranty forms 2021-12-29 14:57:12 +01:00
Andreas Zweili 613fc79516 fix the dates in the warranty tests
because of the new constraint the tests failed when the valid_from date
was after the valid_until date.
2021-12-29 10:50:18 +01:00
Andreas Zweili cb9933967e add CheckConstraint to Warranty
valid_from should always be lower than valid_unil
2021-12-28 18:42:30 +01:00
Andreas Zweili bb70c0f56b devices need to be unique per customer 2021-12-28 17:53:00 +01:00
Andreas Zweili 641a3a7d31 add CSRF_TRUSTED_ORIGINS 2021-12-28 17:45:46 +01:00
Andreas Zweili 0ffa115ebe correct vscode settings 2021-12-28 16:49:41 +01:00
Andreas Zweili 1db8153e70 add a missing env variable 2021-12-28 16:33:44 +01:00
Andreas Zweili 342f460f8b update workflow 2021-12-28 16:30:49 +01:00
Andreas Zweili 69f980efd9 try to build docker image 2021-12-28 16:21:55 +01:00
Andreas Zweili a74af74786 rename job 2021-12-28 16:21:09 +01:00
Andreas Zweili 9d499999d5 run tests on pull request 2021-12-28 16:20:30 +01:00
Andreas Zweili 291acd7622 add tests for get_objects_for_customer 2021-12-28 16:17:35 +01:00
Andreas Zweili c411be37c1 upgrade to django 4.0 2021-12-28 16:07:12 +01:00
Andreas Zweili c1ff79dec6 ignore the db_data dir 2021-12-28 16:06:59 +01:00
Andreas Zweili a1161956db add tests for get_all_objects_for_allowed_customers 2021-12-26 16:10:03 +01:00
Andreas Zweili ba40df90b5 fix a typo 2021-12-26 16:09:56 +01:00
Andreas Zweili c8b7de571e rename test file 2021-12-26 15:38:41 +01:00
Andreas Zweili d03fc187fe add tests for get_object_with_view_permission 2021-12-26 15:37:30 +01:00
Andreas Zweili fa10b77403 add coverage report to testlocal 2021-12-26 15:18:48 +01:00
Andreas Zweili 20524c20d4 remove the get_objects util 2021-12-24 13:12:07 +01:00
Andreas Zweili 436434cc86 replace test badge 2021-12-24 13:05:46 +01:00
Andreas Zweili 252d07eff9 try out a github workflow 2021-12-24 13:01:46 +01:00
Andreas Zweili f901999aee make get_customers an internal function 2021-12-24 12:55:34 +01:00
Andreas Zweili b78780555d rename util function to retrieve objects 2021-12-24 12:48:56 +01:00
Andreas Zweili c648fd1874 replace decorator with generic util 2021-12-24 12:42:36 +01:00
Andreas Zweili f9212d2cbe rewrite the computers_table_view to use the new util 2021-12-24 12:32:48 +01:00
Andreas Zweili 819628d008 add a util to get objects for a specific customer 2021-12-24 12:32:28 +01:00
Andreas Zweili 05b87c14cf fix the customer_list_view 2021-12-23 22:53:42 +01:00
Andreas Zweili 554a6f874d rewrite CustomerCreateView to FBV 2021-12-23 22:44:31 +01:00
Andreas Zweili 8be3a2251e add a util to get objects 2021-12-23 22:12:14 +01:00
Andreas Zweili b4b331ad7b rewrite get_object_with_view_permission
it is now more generic
2021-12-23 21:33:48 +01:00
Andreas Zweili ffae6e4ac6 add a custom function for view_permissions 2021-12-23 19:28:47 +01:00
Andreas Zweili 2ff96a4976 refactor customer_detail_view 2021-12-23 19:14:20 +01:00
Andreas Zweili 3e14c00220 remove unused import 2021-12-23 19:02:58 +01:00
Andreas Zweili c49fa57994 implement the object permission directly 2021-12-23 19:02:18 +01:00
Andreas Zweili 3f206daaf4 rewrite CustomerDetailView to a FBV 2021-12-23 18:50:03 +01:00
Andreas Zweili 52bdd8efae PEP8 2021-12-23 18:38:00 +01:00
Andreas Zweili 5ad5851926 remove unnecessary flag
I don't want the users to use the admin interface.
2021-12-23 18:36:21 +01:00
Andreas Zweili c99e54049c use TemplateResponse in htmx_create_customer 2021-12-23 15:24:50 +01:00
Andreas Zweili 7945dadd65 Fix the customer delete view 2021-12-23 15:11:41 +01:00
Andreas Zweili 478c07160e Add a slight hack to reload the page after success 2021-12-23 15:10:29 +01:00
Andreas Zweili c1fbf81bd4 rewrite htmx test to FBV 2021-12-22 19:14:18 +01:00
Andreas Zweili 381c5c9568 make customer names unique 2021-12-22 19:13:44 +01:00
Andreas Zweili f042f5f1d4 ignore pycharm config for the moment 2021-12-22 19:13:29 +01:00
Andreas Zweili 1573d148ad fix the form 2021-12-21 18:17:58 +01:00
Andreas Zweili ba3e40f1c2 create a first working example 2021-12-21 17:51:57 +01:00