Complete the code to import the Django form class.
from django import [1]
The forms module is used to create form classes in Django.
Complete the code to define a CharField with a max length of 100.
name = forms.[1](max_length=100)
CharField is used for text input with a maximum length.
Fix the error in the widget assignment to use a Textarea widget.
description = forms.CharField(widget=forms.[1])The Textarea widget creates a multi-line text box for input.
Fill both blanks to create an EmailField with a placeholder attribute.
email = forms.EmailField(widget=forms.TextInput(attrs=[1])) # attrs dictionary example: [2]
The attrs dictionary sets HTML attributes like placeholder text.
Fill all three blanks to create a ChoiceField with radio buttons and choices.
GENDER_CHOICES = [
('M', 'Male'),
('F', 'Female'),
('O', 'Other')
]
gender = forms.[1](
choices=[2],
widget=forms.[3]()
)ChoiceField is used for selecting one option from choices.
The choices argument takes a list of tuples.
The RadioSelect widget shows options as radio buttons.
