Switch to unified view

a/OSSEval/analysis/models.py b/OSSEval/analysis/models.py
...
...
538
    page = models.ForeignKey(Page)
538
    page = models.ForeignKey(Page)
539
    instance = models.ForeignKey(Instance)
539
    instance = models.ForeignKey(Instance)
540
    score = models.FloatField()
540
    score = models.FloatField()
541
    class Meta:
541
    class Meta:
542
        unique_together = ('page', 'instance',)
542
        unique_together = ('page', 'instance',)
543
    
544
543
545
class Answer(models.Model):
544
class Answer(models.Model):
546
    """
545
    """
547
    value_integer is the value of the answer
546
    value_integer is the value of the answer
548
    score is value_integer * weight
547
    score is value_integer * weight
...
...
586
        return '<Answer Id="' + str(self.id) + '" ValueInteger="' + str(self.value_integer) + '">' + str_xml + "</Answer>"
585
        return '<Answer Id="' + str(self.id) + '" ValueInteger="' + str(self.value_integer) + '">' + str_xml + "</Answer>"
587
586
588
    class Meta:
587
    class Meta:
589
        unique_together = ('question', 'instance',)
588
        unique_together = ('question', 'instance',)
590
589
591
592
class UploadedFile(models.Model):
590
class UploadedFile(models.Model):
593
    '''
591
    '''
594
    Used to save uploaded xml file so that it can be later retrieved and imported
592
    Used to save uploaded xml file so that it can be later retrieved and imported
595
    '''
593
    '''
596
    docfile = models.FileField(upload_to='documents/%Y/%m/%d')
594
    docfile = models.FileField(upload_to='documents/%Y/%m/%d')
597
    
598
class MyModel(models.Model):
599
    field1 = models.CharField(max_length=40, blank=False, null=False)
600
    field2 = models.CharField(max_length=60, blank=True, null=True)