Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @classmethod
- def get_trunk_element_structure(cls, fields=None) -> tuple:
- """Возвращает структуру создания элемента Trunk."""
- from partners.models import LVProject
- result = (
- cls.get_formated_field(
- name='lv_project_field',
- field_type=cls.DataFormat.SELECT_AJAX,
- verbose='Продукт',
- url=reverse('get_lv_project_select'),
- mandatory=True,
- action=cls.AjaxActions.SELECT,
- ),
- )
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement