apps.py 文件源码

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

项目:ecs 作者: ecs-org 项目源码 文件源码
def ready(self):
        # XXX: should be imported in the AppConfig of the respective app itself
        import ecs.core.triggers
        import ecs.votes.triggers
        import ecs.meetings.triggers

        # Patch the user __str__ method, so the hash in the username field
        # does not show up.
        # XXX: We should be using a custom user model instead.
        from django.contrib.auth.models import User
        from ecs.users.utils import get_full_name
        User.__str__ = get_full_name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号