0

Is it possible to render a Django model CharField as a checkbox? I need this checkbox on admin edit page as well as the list_editable list page. E.g. when checked, set this CharField value to 't', else set it to 'n'

est
  • 11,429
  • 14
  • 70
  • 118

1 Answers1

1

You can do a form changing the widgets no matter the type you are using. Here is the documentation

Then if you need to change other things depending on the input people gives I guess you should do some jQuery creating a $('#mycheckboxid').click function

Hassek
  • 8,715
  • 6
  • 47
  • 59