models.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:django-danceschool 作者: django-danceschool 项目源码 文件源码
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'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号