콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4969 화면

Hello i tryed to use widget handler to my custom module. Everything seems ok i can drag things around but then i click save all the order goes back to normal. Any ideas?

Regards Darius

아바타
취소
베스트 답변

In your XML, you would have enabled the handle widget on a certain field. In your .py file, mention that field in _order , (usually included after _columns) :

_order='your_field_name'

You might also want to specify a default value for it:

_defaults={'your_field_name':2}

Let me know if it doesn't work.
 

아바타
취소
작성자 베스트 답변

Thanks! it worked :)

아바타
취소
관련 게시물 답글 화면 활동
0
8월 23
1401
1
7월 24
2203
1
7월 23
4628
0
3월 24
3375
1
9월 22
6303