1. Arun Karunagath
  2. Online Exam Tool

Commits

Arun Karunagath  committed 0fe78a2

changes in report's model

  • Participants
  • Parent commits 8fbc89f
  • Branches master

Comments (0)

Files changed (1)

File src/reports/models.py

View file
 from django.contrib.contenttypes.models import ContentType
 from django.contrib.contenttypes import generic
 
+from onlinetest.models import Student, Batch
+
 class Report(models.Model):
+    sid = models.ForeignKey(Student)
     name = models.CharField(max_length=250)
     marks_obtained = models.IntegerField()
-    total_ques = models.IntegerField()
-    total_answered = models.IntegerField()
-    total_unanswered = models.IntegerField()
-    di_answered = models.IntegerField()
-    di_unanswered = models.IntegerField()
-    lr_answered = models.IntegerField()
-    lr_unanswered = models.IntegerField()
-    mathematics_answered = models.IntegerField()
-    mathematics_unanswered = models.IntegerField()
-    rc_answered = models.IntegerField()
-    rc_unanswered = models.IntegerField()
+    lr_marks = models.IntegerField()
+    mathematics_marks = models.IntegerField()
+    rc_marks = models.IntegerField()
     
     def __unicode__(self):
         return self.name
     
 
-    
+