{% extends 'base.html' %}

{% block title %} FORM {% endblock title %}

{% block content %}
<h3> Model2 Detail </h3>

<form id="f1" action="{% url 'model2-change' pk %}">
	{% csrf_token %}
	{{ form }}
	<br>
	<br>
	<input type="submit" value="OK" onclick="{ document.getElementById('f1').method='post'; }">
	<a href="{% url 'model2-delete' pk %}"> Delete </a>
</form>

{% endblock content %}