Commit Graph

979 Commits

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