Commits

mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed e01d6ea

unicode: Changed one Model.__str__ test to verify that old-style code still
works with pure ASCII data.

  • Participants
  • Parent commits 6a2d383
  • Branches unicode

Comments (0)

Files changed (1)

File tests/modeltests/str/models.py

     pub_date = models.DateTimeField()
 
     def __str__(self):
-        return smart_str(self.headline)
+        return self.headline
 
 class InternationalArticle(models.Model):
     headline = models.CharField(maxlength=100)