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

Hello, I have a situation where I need a character field displayed on a xml view, but I dont want the value stored in the DB for security reasons

I am making a module that uses authorize.net so I need the user to enter the credit card info so that it can be processed, but I do not want to save the credit card info on the table.

Is there a way to not store character fields in the db?

I cant use a function field because its not editable, so I need a character field so that the user can enter the credit card info on the form and submit it.

아바타
취소
베스트 답변

Hello.

Yes you can use this:

fields.dummy(string='Credit Card', type='char')
아바타
취소
작성자

Thank you for your reply. When I changed them to the dummy fields, it passes False as the values of those fields. I need it to pass in the value entered by the user. Can the value on the dummy field be passed into a method when the form is submitted?

Well, it depends when do you want to process the credit card. Maybe you can just delete them after using that value.

작성자

Ya, I think that's what Im going to do. Thank you

관련 게시물 답글 화면 활동
1
1월 17
5020
2
6월 18
16581
4
9월 24
21304
3
10월 20
4792
14
11월 17
8482