You just need to create a variable that you can use to display the form. In your views.py something simple like
request.session['pending']= true
Then in html you put the form within an if statement such as
{% if request.session.pending %}
<form>
blah blah
</form>
{% endif %}
Then back in your views, you set request.session[‘pending’]= false if the form is submitted or exited