crispy_forms_tags.py 文件源码

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

项目:mes 作者: osess 项目源码 文件源码
def render(self, context):
        c = self.get_render(context)

        if self.actual_helper is not None and getattr(self.actual_helper, 'template', False):
            template = get_template(self.actual_helper.template)
        else:
            if c['is_formset']:
                template = whole_uni_formset_template(self.template_pack)
            else:
                template = whole_uni_form_template(self.template_pack)

        return template.render(c)


# {% crispy %} tag
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号