Django Save Incomplete Progress on Form

后端 未结 3 1622
北海茫月
北海茫月 2021-01-11 20:38

I have a django webapp with multiple users logging in and fill in a form.

Some users may start filling in a form and lack some required data (e.g., a grant #) need

3条回答
  •  走了就别回头了
    2021-01-11 21:14

    The issue is that you have multiple Forms.

    Partial. Incomplete. Complete. Ready for this. Ready for that.

    Indeed, you have a Form-per-stage of a workflow.

    Nothing wrong with this at all.

    1. Figure out where in the workflow you are.

    2. Populate and present the form for the next stage.

    Forms can inherit from each other to save repeating validation methods.

提交回复
热议问题