--- a/OSSEval/analysis/models.py
+++ b/OSSEval/analysis/models.py
@@ -14,7 +14,7 @@
visible = models.BooleanField(default=True)
weight_scenario = models.ForeignKey(WeightScenario)
protected = models.BooleanField(default=False)
- def __unicode__(self):
+ def __str__(self):
return self.name
def from_xml(self, xmldoc, insert = True):
#All but the MethodologyVersion so that we can independently import from xml MethodologyVersion and Analysis
@@ -37,7 +37,7 @@
name = models.CharField(max_length=200)
name_for_search = models.CharField(max_length=200, default="")
analysis = models.ForeignKey(Analysis)
- def __unicode__(self):
+ def __str__(self):
return self.name + " - " + self.name_for_search
def from_xml(self, xmldoc, insert = True):
pass