擅长:python、mysql、java
<p>我用这个方法解决了我的问题(可能不是最好的方法,但很管用):</p>
<pre><code>class CollaboratorForm(forms.Form):
....
def __init__(self, *args, **kwargs):
self.request = kwargs.pop('canvas', None)
super(CollaboratorForm, self).__init__(*args, **kwargs)
</code></pre>
<p>那么在我看来:</p>
^{pr2}$
<p>也许不是最优雅的解决方案,但它目前有效。欢迎反馈。在</p>