equal
deleted
inserted
replaced
59 |
59 |
60 class RegistrationEditForm(RegistrationSubmitForm): |
60 class RegistrationEditForm(RegistrationSubmitForm): |
61 id = forms.CharField(widget=forms.HiddenInput) |
61 id = forms.CharField(widget=forms.HiddenInput) |
62 |
62 |
63 class WifiForm(forms.ModelForm): |
63 class WifiForm(forms.ModelForm): |
64 """PyCon wifi form |
64 """SciPyCon wifi form |
65 """ |
65 """ |
66 |
66 |
67 def save(self, user, scope): |
67 def save(self, user, scope): |
68 try: |
68 try: |
69 wifi = Wifi.objects.get(user=user, scope=scope) |
69 wifi = Wifi.objects.get(user=user, scope=scope) |
79 model = Wifi |
79 model = Wifi |
80 fields = ('wifi',) |
80 fields = ('wifi',) |
81 |
81 |
82 |
82 |
83 class AccommodationForm(forms.ModelForm): |
83 class AccommodationForm(forms.ModelForm): |
84 """PyCon Accommodation form |
84 """SciPyCon Accommodation form |
85 """ |
85 """ |
86 |
86 |
87 def save(self, user, scope): |
87 def save(self, user, scope): |
88 try: |
88 try: |
89 acco = Accommodation.objects.get(user=user, scope=scope) |
89 acco = Accommodation.objects.get(user=user, scope=scope) |