Advertisement
Mochinov

Untitled

Apr 19th, 2022
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.43 KB | None | 0 0
  1.  
  2. class SubmissionRequestAccessTabTable(GenericTable):
  3.     """Таб Запросов Имущества и доступов, для Сотрудника."""
  4.  
  5.     from crm_control.views.serializers.submission_request_resource_serializer import SubmissionRequestSerializer
  6.  
  7.     name = 'SubmissionRequestAccessTab'
  8.     verbose = 'Запрос на доступ'
  9.     # icon = 'AccountVoice'
  10.     permission = 'users.crm_users_can_view_employee'
  11.     element_serializer = SubmissionRequestSerializer
  12.     element_structure_method = ElementStructureGenerator.get_submission_request_resource_tab_for_user_element_structure
  13.     element_tab_name = 'submission_request_access'
  14.     element_tab_group = USER_REQUEST_TAB_GROUP
  15.  
  16.  
  17. class SubmissionRequestPropertyTabTable(GenericTable):
  18.     """Таб Запросов Имущества и доступов, для Сотрудника."""
  19.  
  20.     from crm_control.views.serializers.submission_request_resource_serializer import SubmissionRequestSerializer
  21.  
  22.     name = 'SubmissionRequestPropertyTab'
  23.     verbose = 'Запрос на имущество'
  24.     # icon = 'AccountVoice'
  25.     permission = 'users.crm_users_can_view_employee'
  26.     element_serializer = SubmissionRequestSerializer
  27.     element_structure_method = ElementStructureGenerator.get_submission_request_resource_tab_for_user_element_structure
  28.     element_tab_name = 'submission_request_property'
  29.     element_tab_group = USER_REQUEST_TAB_GROUP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement