What should be a forms.py and views.py be like for a template that has radio buttons ?
13 views
Skip to first unread message
Satyajit Sarangi
unread,
Jun 12, 2011, 8:16:17 PM6/12/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers
My template has radio buttons . I would like to know what exactly be
there in forms.py to render this template in the views ?
This is my tempalte
<body>
<form name="." method="POST">
<div align="center"><br>
<p><label for="id_subject">Username:</label>
<input id="id_subject" type="text" name="subject" maxlength="100" /
></p>
<p>
<text>Who can view the data </text>
</p>
<input type="radio" name="group1" value="Any registered users"> Any
registered users<br>
<input type="radio" name="group1" value="Only users that can edit "
checked> Only users that can edit<br>
<hr>
<p>
<text> Who can edit the data </text>
</p>
<input type="radio" name="group2" value="Any registered user"> Any
registered user<br>
<input type="radio" name="group2" value="Only the following users">
Only the following users<br>
Karen Tracey
unread,
Jun 13, 2011, 12:42:56 AM6/13/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
Please ask questions about using Django on django-users. The topic of this list is development of Django itself.