models.py 文件源码

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

项目:openbare 作者: openbare 项目源码 文件源码
def _set_username(self):
        """Set username to user.username and validate."""
        self.username = self.user.username

        # If username is invalid generate a new username. Lendable must
        # be available for checkout by user to hit this code.
        if not self._validate_username():
            self.username = get_random_string(length=20)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号