app/projrev/models.py
changeset 49 33c54f815fd5
parent 47 09c3b7aaa535
equal deleted inserted replaced
48:9bdb5a00689a 49:33c54f815fd5
   704   city = models.CharField(max_length=1000)
   704   city = models.CharField(max_length=1000)
   705   city.help_text = 'Enter the city name.'
   705   city.help_text = 'Enter the city name.'
   706 
   706 
   707   # Field containing the pin code
   707   # Field containing the pin code
   708   pin_code = models.IntegerField()
   708   pin_code = models.IntegerField()
   709   pin_code.help_text = "Enter your address's pin code."
   709   pin_code.help_text = "Enter your address's pin code without any spaces."
   710 
   710 
   711   # Field containing the state to which the institution belongs to.
   711   # Field containing the state to which the institution belongs to.
   712   state = models.CharField(
   712   state = models.CharField(
   713       max_length=256,
   713       max_length=256,
   714       choices=sorted(STATE_CHOICES.items(), key=lambda (k,v): (v,k)))
   714       choices=sorted(STATE_CHOICES.items(), key=lambda (k,v): (v,k)))