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

Hi all, 

I've created a model from gui, now I need to exted it and there are a lot of records, so I can't create it from py file from scratch, how can I solve the issue?


I've tryied to declare the model in py file but I'm not able to overryde what was created from gui. I've also tryied to inherit it, but the change are not updated.


Any help will be very appreciated.

아바타
취소
베스트 답변

I think instead of copy past table export-import  data will be way easy 

create a new model using py with the same field and type ( without x_ prefix)
Export CSV file from an existing model created using GUI
Import CSV file to new model create by .py


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

Hi, thanks for the response, is there not a more smart way to do it? If I define the model from code, can I switch the table is such a way?

아바타
취소
베스트 답변

Hi,

I will suggest you to do add new model from the code and copy the existing data in the current model to the new table. During the copy to new table, try to keep same id for the records.

Thanks

아바타
취소
관련 게시물 답글 화면 활동
1
3월 20
5545
0
10월 18
2580
2
8월 21
6420
1
5월 19
3718
0
4월 18
2949