[Answered ]-Update is creating new entry rather than updating it

1👍

You need to POST to the edit view, so:

<form action="{% url 'updatedetails' pk=form.instance.pk %}" method="POST">
    ...
</form>

You should thus make two templates: one to create data, and one to edit data.

Leave a comment