If you have multiple forms
from django import forms class NameForm(forms.Form): your_name = forms.CharField(label=\'Your name\', max_length=100) class Sec
If you are working with forms you can get the id from the templates
{{ form.instance.pk ]}