def contact_create(request):
    if request.method == 'POST':
        form = ContactForm(request.POST)
if form.is_valid():
    new_contact = form.save()
Get Primary Key after Saving a ModelForm in Django