options.py 文件源码

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

项目:liberator 作者: libscie 项目源码 文件源码
def get_action_choices(self, request, default_choices=BLANK_CHOICE_DASH):
        """
        Return a list of choices for use in a form object.  Each choice is a
        tuple (name, description).
        """
        choices = [] + default_choices
        for func, name, description in six.itervalues(self.get_actions(request)):
            choice = (name, description % model_format_dict(self.opts))
            choices.append(choice)
        return choices
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号