Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---- submission_request_resource_serializer.py
- from misc.views.generic_serializer import GenericSerializer
- from users.models import SubmissionRequest, User
- class SubmissionRequestSerializer(GenericSerializer):
- class Meta:
- model = User
- fields = []
- ---- tables.py
- class SubmissionRequestTable(GenericTable):
- """Таблица Запросов."""
- from users.models import SubmissionRequest
- from crm_control.views.serializers.submission_request_resource_serializer import SubmissionRequestSerializer
- name = 'SubmissionRequest'
- verbose = 'Запросы'
- url = reverse('submission_request_list')
- icon = 'AccountVoice'
- permission = 'users.crm_users_can_view_employee'
- serializer = SubmissionRequestSerializer
- # element_serializer = SubmissionRequestSerializer
- table_structure_method = TableStructureGenerator.get_user_table_structure
- element_structure_method = ElementStructureGenerator.get_submission_request_resource_tab_for_user_element_structure
- table_filters_structure_method = FilterStructureGenerator.get_social_media_employee_element_structure
- create_element_method = CreateElementStructureGenerator.get_default_element_structure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement