Commit Graph

12 Commits

Author SHA1 Message Date
b78780555d rename util function to retrieve objects 2021-12-24 12:48:56 +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
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
Andreas Zweili
2646b964ca fix the get_objects function 2020-02-29 19:26:17 +01:00
Andreas Zweili
19ff961cfa correct get_objects to return 404 with wrong value 2020-02-29 19:01:16 +01:00
Andreas Zweili
7b511ccda2 add various comments 2020-02-29 15:35:46 +01:00
Andreas Zweili
26dcbf4cb5 add a function to get objects limited to customer
this function will return a queryset containing only items which are
related to customers the user is allowed to view.
2020-02-29 15:16:26 +01:00
Andreas Zweili
e882e062e8 add function to get customer objects for user
With this function we get a list of customers the user is allowed to view.
2020-02-29 15:00:22 +01:00
Andreas Zweili
da1375a030 calculate the warranty duration from the dates provided 2020-02-16 20:15:47 +01:00