Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个由按钮和提交按钮组成的表单。我只想从提交按钮提交。
我尝试使用 button type="button",但是当我尝试提交时,我收到“此字段为必填项”错误。我怎样才能做到这一点?
您是否尝试在models.py中为未提交的字段设置Blank = True?