wagtail_hooks.py 文件源码

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

项目:wagtailsocialfeed 作者: LUKKIEN 项目源码 文件源码
def __init__(self):
        # Iterate over existing configurations that are moderated
        config_qs = SocialFeedConfiguration.objects.filter(moderated=True)
        for config in config_qs:
            self.config_menu_items[config.id] = \
                self._create_moderate_menu_item(config)

        self._registered_menu_items = list(self.config_menu_items.values())
        self.construct_hook_name = None

        post_save.connect(self._update_menu, sender=SocialFeedConfiguration)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号