app/projrev/models.py
changeset 38 3cb38edbe05f
parent 37 e78a5483553e
child 39 e7880a8f7e04
--- a/app/projrev/models.py	Mon Aug 10 17:18:07 2009 +0530
+++ b/app/projrev/models.py	Mon Aug 10 19:38:53 2009 +0530
@@ -692,6 +692,22 @@
   institution = models.CharField(max_length=256)
   institution.help_text = 'Give the full name of your institution.'
 
+  # Field containing the title of the proposal
+  title = models.CharField(max_length=2000)
+  title.help_text = 'Give the complete title of your proposal.'
+
+  # Field containing the title of the proposal
+  address = models.CharField(max_length=2000)
+  address.help_text = 'Enter your complete address.'
+
+  # Field containing the city
+  city = models.CharField(max_length=1000)
+  city.help_text = 'Enter the city name.'
+
+  # Field containing the pin code
+  pin_code = models.IntegerField()
+  pin_code.help_text = "Enter your address's pin code."
+
   # Field containing the state to which the institution belongs to.
   state = models.CharField(
       max_length=256,
@@ -701,7 +717,8 @@
   # Field containing the district to which the institution belongs
   # to in the state of India.
   district = models.CharField(max_length=256,
-                              choices=sort_dict(DISTRICT_CHOICES))
+                              choices=sort_dict(DISTRICT_CHOICES),
+                              null=True)
   district.help_text = ('First select the state before selecting the district. '
       'Select the district of the state where this project is taken up.')
 
@@ -868,42 +885,42 @@
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   attribute1.verbose_name = ('Feasibility of the proposed activity and the '
       'appropriateness of the time frame.')
-  
+
   attribute2 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('Uniqueness/novelty/innovation of the said '
+  attribute2.verbose_name = ('Uniqueness/novelty/innovation of the said '
       'proposal')
 
   attribute3 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('Scope for inter-institutional collaboration and '
+  attribute3.verbose_name = ('Scope for inter-institutional collaboration and '
       'development.')
 
   attribute4 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('The organisation of the programme to be carried '
+  attribute4.verbose_name = ('The organisation of the programme to be carried '
       'out.')
 
   attribute5 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('The details of the work as the outlined by the '
+  attribute5.verbose_name = ('The details of the work as the outlined by the '
       'principal investigator(PI).')
 
   attribute6 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('Sufficiency of funds as requested by the PI.')
+  attribute6.verbose_name = ('Sufficiency of funds as requested by the PI.')
 
   attribute7 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('Social impact/reach/spread of the outcome of the '
+  attribute7.verbose_name = ('Social impact/reach/spread of the outcome of the '
       'proposal.')
 
   attribute8 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('Contribution of the proposal to minimizing the '
+  attribute8.verbose_name = ('Contribution of the proposal to minimizing the '
       'digital divide in our country.')
 
   attribute9 = models.PositiveSmallIntegerField(
       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
-  attribute1.verbose_name = ('Any other matter which is likely to affect the '
+  attribute9.verbose_name = ('Any other matter which is likely to affect the '
       'execution of the project(max 600 characters).')