1. Arun Karunagath
  2. Online Exam Tool

Commits

Arun Karunagath  committed 56b97b1

changed Report's marks related columns to float, since we have negatives there'll be float value

  • Participants
  • Parent commits ac6e6fe
  • Branches master

Comments (0)

Files changed (1)

File src/reports/models.py

View file
  • Ignore whitespace
 class Report(models.Model):
     sid = models.ForeignKey(Student)
     name = models.CharField(max_length=250)
-    marks_obtained = models.IntegerField()
-    lr_marks = models.IntegerField()
-    mathematics_marks = models.IntegerField()
-    rc_marks = models.IntegerField()
+    marks_obtained = models.FloatField()
+    lr_marks = models.FloatField()
+    mathematics_marks = models.FloatField()
+    rc_marks = models.FloatField()
     
     def __unicode__(self):
         return self.name