You have a few options:
-
Put different URLs in the action for the two forms. Then you’ll have two different view functions to deal with the two different forms.
-
Read the submit button values from the POST data. You can tell which submit button was clicked: How can I build multiple submit buttons django form?