Based on the dropdown value ,store the form data to respective tables in django

Django, I have 3 models, In the html form there is a drop down menu with three value, based on the dropdown value selected ,the data from the form should be stored in the respective model table. Like if the first dropdown selected then on form submission the data should be stored in the first table, and so on. Please provide some inputs on this, thanks.

Back to Top