app/projrev/models.py
changeset 32 b39994cca761
parent 28 be65e84e7d03
child 35 c64531b3afb4
equal deleted inserted replaced
31:ef9fdc847543 32:b39994cca761
   675       "MPDM": "Damoh"
   675       "MPDM": "Damoh"
   676       }
   676       }
   677 
   677 
   678   # Field containing the Line Item to which the project belongs to.
   678   # Field containing the Line Item to which the project belongs to.
   679   line_item = models.CharField(max_length=256,
   679   line_item = models.CharField(max_length=256,
   680                                choices=sort_dict(LINE_ITEM_CHOICES))
   680                                choices=tuple(LINE_ITEM_CHOICES))
   681   line_item.help_text = 'Select from one of the Line Items.'
   681   line_item.help_text = 'Select from one of the Line Items.'
   682 
   682 
   683   # Field containing the name of the institution working on the
   683   # Field containing the name of the institution working on the
   684   # project.
   684   # project.
   685   institution = models.CharField(max_length=256)
   685   institution = models.CharField(max_length=256)
   853   reviewed_on = models.DateTimeField(auto_now=True)
   853   reviewed_on = models.DateTimeField(auto_now=True)
   854 
   854 
   855   #: Field containing the review value for this attribute.
   855   #: Field containing the review value for this attribute.
   856   attribute1 = models.PositiveSmallIntegerField(
   856   attribute1 = models.PositiveSmallIntegerField(
   857       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   857       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   858   attribute1.verbose_name = ''
   858   
   859   
   859   attribute2 = models.PositiveSmallIntegerField(
   860   attribute2 = models.PositiveSmallIntegerField(
   860       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   861       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   862   attribute1.verbose_name = ''
   861 
   863 
   862   attribute3 = models.PositiveSmallIntegerField(
   864   attribute3 = models.PositiveSmallIntegerField(
   863       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   865       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   866   attribute1.verbose_name = ''
   864 
   867 
   865   attribute4 = models.PositiveSmallIntegerField(
   868   attribute4 = models.PositiveSmallIntegerField(
   866       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   869       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   870   attribute1.verbose_name = ''
   867 
   871 
   868   attribute5 = models.PositiveSmallIntegerField(
   872   attribute5 = models.PositiveSmallIntegerField(
   869       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   873       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   874   attribute1.verbose_name = ''
   870 
   875 
   871   attribute6 = models.PositiveSmallIntegerField(
   876   attribute6 = models.PositiveSmallIntegerField(
   872       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   877       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   878   attribute1.verbose_name = ''
   873 
   879 
   874   attribute7 = models.PositiveSmallIntegerField(
   880   attribute7 = models.PositiveSmallIntegerField(
   875       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   881       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   882   attribute1.verbose_name = ''
   876 
   883 
   877   attribute8 = models.PositiveSmallIntegerField(
   884   attribute8 = models.PositiveSmallIntegerField(
   878       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   885       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   886   attribute1.verbose_name = ''
   879 
   887 
   880   attribute9 = models.PositiveSmallIntegerField(
   888   attribute9 = models.PositiveSmallIntegerField(
   881       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
   889       choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)])
       
   890   attribute1.verbose_name = ''