1👍
You are making things confusing: your model named ModelsForm
which suggests that it is a form, not a model. If you thus want to obtain the objects you can work with:
ModelsForm.objects.get_or_create(
name=form.cleaned_data['name'],
email=form.cleaned_data['email'],
phone=form.cleaned_data['phone']
)
But I strongly advise to rename your models to names that do not hint these are forms, views, admins, etc.
Source:stackexchange.com