equal
deleted
inserted
replaced
70 wifi = Wifi.objects.get(user=user, scope=scope) |
70 wifi = Wifi.objects.get(user=user, scope=scope) |
71 except ObjectDoesNotExist: |
71 except ObjectDoesNotExist: |
72 wifi = Wifi(user=user, scope=scope) |
72 wifi = Wifi(user=user, scope=scope) |
73 |
73 |
74 wifi.wifi = self.cleaned_data['wifi'] |
74 wifi.wifi = self.cleaned_data['wifi'] |
|
75 wifi.registration_id = self.cleaned_data['registration_id'] |
75 wifi.save() |
76 wifi.save() |
76 |
77 |
77 return wifi |
78 return wifi |
78 |
79 |
79 class Meta: |
80 class Meta: |
80 model = Wifi |
81 model = Wifi |
81 fields = ('wifi',) |
82 fields = ('wifi', 'registration_id') |
82 |
83 |
83 |
84 |
84 class AccommodationForm(forms.ModelForm): |
85 class AccommodationForm(forms.ModelForm): |
85 """SciPyCon Accommodation form |
86 """SciPyCon Accommodation form |
86 """ |
87 """ |