1👍
✅
The id is used only for the label. It’s not used in the data the form sends to the server. The value of the radio button (value="{{ choice.id }}"
, a plain number) is what’s sent.
In other words, the id and the line in the views.py file are not related.
👤JJJ
Source:stackexchange.com