全部分类
移动开发与应用
WEB前端
架构与运维
程序设计
数据库
操作系统
热点技术
综合
forms提示AttributeError: Form object has no attribute '_errors'
1900阅读 0评论
2012-06-26
wdove
分类:
系统运维
Reason:
Override the __init__() function.
Solution:
call super.__init__() in child class __init__():
def __init__(self, user, *args, **kwargs):
super(UserNotificationForm, self).__init__(*args, **kwargs)
self.user = user
上一篇:
APC PDU SNMP interface
下一篇:
Pass parameter to form field | 在form field初始化时如何传参给它