Model Field: field.editable

17 views
Skip to first unread message

Andrew Emory

unread,
Oct 7, 2016, 9:11:59 PM10/7/16
to Django users
I am having trouble finding out how this field renders.

The behavior that I want is basically if the user clicks a radio button to true than a form field is displayed for more info, if they click false then nothing needs to happen.

Is this the model field that I want?  Or do I just need a boolean field and some JS?

Thanks!

Andrew Emory

unread,
Oct 7, 2016, 9:22:23 PM10/7/16
to Django users
NVM, that is a field option.  Still though, can anyone suggest the model field to use?

Andrew Emory

unread,
Oct 7, 2016, 10:04:57 PM10/7/16
to Django users
I figured it out.  It would be a boolean field followed by (in my case) a CharField.  You would get the conditionality w/ JS.


On Friday, October 7, 2016 at 8:11:59 PM UTC-5, Andrew Emory wrote:
Reply all
Reply to author
Forward
0 new messages