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