Attribute Names.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Mon, 10 Aug 2009 16:36:16 +0530
changeset 32 b39994cca761
parent 31 ef9fdc847543
child 34 21942fac2b4b
Attribute Names.
app/projrev/models.py
app/projrev/views/proposal.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
--- 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))