There is a page with a form to send document data to django. The form has several tabs (tabs). One tab for each type of document. For all types of documents one model in the database. On each tab of the form the same fields and the hidden field "document type" is transmitted. How to make that when sending the form, information from all tabs was entered into the database.

    1 answer 1

    More correct architectural solution would be to use different forms for different models. But if such a crutch is really needed, then you can use the usual form instead of the model one and manually create models in the view, transferring data from the form to them.