# HG changeset patch # User Madhusudan.C.S # Date 1290072760 -19800 # Node ID 4801b7adbbc59a0419331d4770fc406a002a4205 # Parent 412b8db4a0364d34a5beca772682afc797ca9f71 Add registration_id field to Wifi model and make necessary changes in the form. diff -r 412b8db4a036 -r 4801b7adbbc5 project/scipycon/registration/forms.py --- 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): diff -r 412b8db4a036 -r 4801b7adbbc5 project/scipycon/registration/models.py --- 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).
- " + "This is for security reasons and will be used while you enter and " + "leave the venue.
- 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