equal
deleted
inserted
replaced
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 |