# HG changeset patch # User Madhusudan.C.S # Date 1249902376 -19800 # Node ID b39994cca7614154cbf4bd1e200928cd14fbe960 # Parent ef9fdc847543531fd42455730bf4994933903dcd Attribute Names. diff -r ef9fdc847543 -r b39994cca761 app/projrev/models.py --- a/app/projrev/models.py Mon Aug 10 03:54:33 2009 +0530 +++ b/app/projrev/models.py Mon Aug 10 16:36:16 2009 +0530 @@ -677,7 +677,7 @@ # Field containing the Line Item to which the project belongs to. line_item = models.CharField(max_length=256, - choices=sort_dict(LINE_ITEM_CHOICES)) + choices=tuple(LINE_ITEM_CHOICES)) line_item.help_text = 'Select from one of the Line Items.' # Field containing the name of the institution working on the @@ -855,27 +855,36 @@ #: Field containing the review value for this attribute. attribute1 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute2 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute3 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute4 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute5 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute6 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute7 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute8 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' attribute9 = models.PositiveSmallIntegerField( choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)]) + attribute1.verbose_name = '' \ No newline at end of file diff -r ef9fdc847543 -r b39994cca761 app/projrev/views/proposal.py --- a/app/projrev/views/proposal.py Mon Aug 10 03:54:33 2009 +0530 +++ b/app/projrev/views/proposal.py Mon Aug 10 16:36:16 2009 +0530 @@ -417,4 +417,4 @@ template = 'projrev/proposal/myreviews.html' - return render_to_response(template, RequestContext(request, context)) \ No newline at end of file + return render_to_response(template, RequestContext(request, context))