[Answered ]-With Django ModelForms, how do I including the "id" column or primary key in the HTML?

2👍

Is this what you’re looking for?

https://docs.djangoproject.com/en/1.4/topics/forms/modelforms/#the-save-method

A subclass of ModelForm can accept an existing model instance as the keyword argument instance; if this is supplied, save() will update that instance. If it’s not supplied, save() will create a new instance of the specified model

Leave a comment