Advertisement
Mochinov

Untitled

May 23rd, 2022
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1.  
  2. @classmethod
  3. def get_trunk_element_structure(cls, fields=None) -> tuple:
  4. """Возвращает структуру создания элемента Trunk."""
  5.  
  6. from partners.models import LVProject
  7.  
  8. result = (
  9. cls.get_formated_field(
  10. name='lv_project_field',
  11. field_type=cls.DataFormat.SELECT_AJAX,
  12. verbose='Продукт',
  13. url=reverse('get_lv_project_select'),
  14. mandatory=True,
  15. action=cls.AjaxActions.SELECT,
  16. ),
  17. )
  18.  
  19. return result
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement