def __str__(self):
if self.month and self.year and self.classDescription:
# In case of unsaved series, month and year are not yet set.
return month_name[self.month or 0] + ' ' + str(self.year) + ": " + self.classDescription.title
elif self.classDescription:
return str(_('Class Series: %s' % self.classDescription.title))
else:
return str(_('Class Series'))
评论列表
文章目录