当我的表单有一个复选框为 True 时,我想强制 my_form.is_valid() 返回有效响应。但是每次都无效...
def clean(self):
if self.cleaned_data.get("replay_transaction") == True:
#what i need to do to ignore all other field verification (card number, cvv, ...)?
else:
self.cleaned_data
谢谢你