sdi/forms.py
changeset 19 3932d9426c44
parent 8 e85ae25f920a
child 20 9db4ee082d4e
equal deleted inserted replaced
18:7d587311a4b5 19:3932d9426c44
     1 from django import forms
     1 from django import forms
     2 
     2 
     3 from sage_days.sdi.models import Registrant
     3 from sage_days.sdi.models import Registrant, TOPICS_CHOICES
     4 
     4 
     5 class RegisterForm(forms.ModelForm):
     5 class RegisterForm(forms.ModelForm):
     6     """ The form that is displayed to user.
     6     """ The form that is displayed to user.
     7     """
     7     """
     8 
     8 
       
     9     topics_interested = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple, choices=TOPICS_CHOICES)       
     9     class Meta:
    10     class Meta:
    10         model = Registrant
    11         model = Registrant
       
    12