app/projrev/models.py
changeset 38 3cb38edbe05f
parent 37 e78a5483553e
child 39 e7880a8f7e04
equal deleted inserted replaced
37:e78a5483553e 38:3cb38edbe05f
   690   # Field containing the name of the institution working on the
   690   # Field containing the name of the institution working on the
   691   # project.
   691   # project.
   692   institution = models.CharField(max_length=256)
   692   institution = models.CharField(max_length=256)
   693   institution.help_text = 'Give the full name of your institution.'
   693   institution.help_text = 'Give the full name of your institution.'
   694 
   694 
       
   695   # Field containing the title of the proposal
       
   696   title = models.CharField(max_length=2000)
       
   697   title.help_text = 'Give the complete title of your proposal.'
       
   698 
       
   699   # Field containing the title of the proposal
       
   700   address = models.CharField(max_length=2000)
       
   701   address.help_text = 'Enter your complete address.'
       
   702 
       
   703   # Field containing the city
       
   704   city = models.CharField(max_length=1000)
       
   705   city.help_text = 'Enter the city name.'
       
   706 
       
   707   # Field containing the pin code
       
   708   pin_code = models.IntegerField()
       
   709   pin_code.help_text = "Enter your address's pin code."
       
   710 
   695   # Field containing the state to which the institution belongs to.
   711   # Field containing the state to which the institution belongs to.
   696   state = models.CharField(
   712   state = models.CharField(
   697       max_length=256,
   713       max_length=256,
   698       choices=sorted(STATE_CHOICES.items(), key=lambda (k,v): (v,k)))
   714       choices=sorted(STATE_CHOICES.items(), key=lambda (k,v): (v,k)))
   699   state.help_text = 'Select the state in which this project is taken up.'
   715   state.help_text = 'Select the state in which this project is taken up.'
   700 
   716 
   701   # Field containing the district to which the institution belongs
   717   # Field containing the district to which the institution belongs
   702   # to in the state of India.
   718   # to in the state of India.
   703   district = models.CharField(max_length=256,
   719   district = models.CharField(max_length=256,
   704                               choices=sort_dict(DISTRICT_CHOICES))
   720                               choices=sort_dict(DISTRICT_CHOICES),
       
   721                               null=True)
   705   district.help_text = ('First select the state before selecting the district. '
   722   district.help_text = ('First select the state before selecting the district. '
   706       'Select the district of the state where this project is taken up.')
   723       'Select the district of the state where this project is taken up.')
   707 
   724 
   708   mobile_num = models.CharField(max_length=20)
   725   mobile_num = models.CharField(max_length=20)
   709   mobile_num.help_text = 'Enter your mobile number.'
   726   mobile_num.help_text = 'Enter your mobile number.'
   866   #: Field containing the review value for this attribute.
   883   #: Field containing the review value for this attribute.
   867   attribute1 = models.PositiveSmallIntegerField(
   884   attribute1 = models.PositiveSmallIntegerField(
   868       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   885       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   869   attribute1.verbose_name = ('Feasibility of the proposed activity and the '
   886   attribute1.verbose_name = ('Feasibility of the proposed activity and the '
   870       'appropriateness of the time frame.')
   887       'appropriateness of the time frame.')
   871   
   888 
   872   attribute2 = models.PositiveSmallIntegerField(
   889   attribute2 = models.PositiveSmallIntegerField(
   873       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   890       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   874   attribute1.verbose_name = ('Uniqueness/novelty/innovation of the said '
   891   attribute2.verbose_name = ('Uniqueness/novelty/innovation of the said '
   875       'proposal')
   892       'proposal')
   876 
   893 
   877   attribute3 = models.PositiveSmallIntegerField(
   894   attribute3 = models.PositiveSmallIntegerField(
   878       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   895       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   879   attribute1.verbose_name = ('Scope for inter-institutional collaboration and '
   896   attribute3.verbose_name = ('Scope for inter-institutional collaboration and '
   880       'development.')
   897       'development.')
   881 
   898 
   882   attribute4 = models.PositiveSmallIntegerField(
   899   attribute4 = models.PositiveSmallIntegerField(
   883       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   900       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   884   attribute1.verbose_name = ('The organisation of the programme to be carried '
   901   attribute4.verbose_name = ('The organisation of the programme to be carried '
   885       'out.')
   902       'out.')
   886 
   903 
   887   attribute5 = models.PositiveSmallIntegerField(
   904   attribute5 = models.PositiveSmallIntegerField(
   888       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   905       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   889   attribute1.verbose_name = ('The details of the work as the outlined by the '
   906   attribute5.verbose_name = ('The details of the work as the outlined by the '
   890       'principal investigator(PI).')
   907       'principal investigator(PI).')
   891 
   908 
   892   attribute6 = models.PositiveSmallIntegerField(
   909   attribute6 = models.PositiveSmallIntegerField(
   893       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   910       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   894   attribute1.verbose_name = ('Sufficiency of funds as requested by the PI.')
   911   attribute6.verbose_name = ('Sufficiency of funds as requested by the PI.')
   895 
   912 
   896   attribute7 = models.PositiveSmallIntegerField(
   913   attribute7 = models.PositiveSmallIntegerField(
   897       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   914       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   898   attribute1.verbose_name = ('Social impact/reach/spread of the outcome of the '
   915   attribute7.verbose_name = ('Social impact/reach/spread of the outcome of the '
   899       'proposal.')
   916       'proposal.')
   900 
   917 
   901   attribute8 = models.PositiveSmallIntegerField(
   918   attribute8 = models.PositiveSmallIntegerField(
   902       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   919       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   903   attribute1.verbose_name = ('Contribution of the proposal to minimizing the '
   920   attribute8.verbose_name = ('Contribution of the proposal to minimizing the '
   904       'digital divide in our country.')
   921       'digital divide in our country.')
   905 
   922 
   906   attribute9 = models.PositiveSmallIntegerField(
   923   attribute9 = models.PositiveSmallIntegerField(
   907       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   924       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   908   attribute1.verbose_name = ('Any other matter which is likely to affect the '
   925   attribute9.verbose_name = ('Any other matter which is likely to affect the '
   909       'execution of the project(max 600 characters).')
   926       'execution of the project(max 600 characters).')