Add registration_id field to Wifi model and make necessary changes in the form.
--- a/project/scipycon/registration/forms.py Thu Nov 18 15:00:13 2010 +0530
+++ b/project/scipycon/registration/forms.py Thu Nov 18 15:02:40 2010 +0530
@@ -71,13 +71,14 @@
wifi = Wifi(user=user, scope=scope)
wifi.wifi = self.cleaned_data['wifi']
+ wifi.registration_id = self.cleaned_data['registration_id']
wifi.save()
return wifi
class Meta:
model = Wifi
- fields = ('wifi',)
+ fields = ('wifi', 'registration_id')
class AccommodationForm(forms.ModelForm):
--- a/project/scipycon/registration/models.py Thu Nov 18 15:00:13 2010 +0530
+++ b/project/scipycon/registration/models.py Thu Nov 18 15:02:40 2010 +0530
@@ -30,6 +30,7 @@
('Female', 'Female'),
)
+
class Wifi(base_models.ScopedBase):
"""Defines wifi options at SciPy.in
"""
@@ -39,6 +40,17 @@
wifi = models.CharField(max_length=50, choices=WIFI_CHOICES,
help_text=WIFI_HELP, verbose_name="Laptop")
+ registration_id = models.CharField(
+ max_length=255, verbose_name="Identification Number",
+ help_text="- Provide the serial or identification number at the "
+ "back of your laptop using which your laptop can be uniquely "
+ "identified. Ex: 8BDB8FB (Service Tag on Dell Laptops).<br /> - "
+ "This is for security reasons and will be used while you enter and "
+ "leave the venue.<br /> - Please don't provide the model number "
+ "like Dell Inspiron 1545. There may be many laptops of that model "
+ "and hence your laptop cannot be uniquely identified.",
+ blank=True, null=True)
+
class Accommodation(base_models.ScopedBase):
"""Defines accommodation information for SciPy.in