阅读背景:

自定义Django小部件/字段:对象没有属性'attrs'

来源:互联网 

I'm trying to make a custom form field in Django that allows a user to link a file or upload a file. To do this, I'm creating a subclass of the MultiValueField with the fields property set to (URLField(), FileField()). I'm not sure this is the right approach, but I keep getting an error I can't understand:I'm trying to make a custom form field in Djang




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: