{"version":"1.0","type":"rich","title":"A Python style question","description":"This example shows a Django survey form built with the MultipleChoiceAnswerForm ModelForm and a custom MyRadioRenderer for answer widgets. The survey view processes POST requests by iterating over Section and MultipleChoiceQuestion objects, validating each form with a \"Q{question.id}\" prefix, and saving valid answers to the MultipleChoiceAnswer model with the respondent. Unfinished surveys render a survey.html template with section and question data, while completed surveys redirect to a message.html template. The code uses Django’s HiddenInput, RadioSelect, RequestContext, and render_to_response APIs.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-944595?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}