DEV Community

Discussion on: ValueError Occurring During Saving the Form

Collapse
 
soumyaranjannaik profile image
Soumya Ranjan Naik

Where you create obj1 there instead of creating objects using positional arguments use keyword arguments.
So change line will look like

obj1=Contact(name=name,phone=phone,email=email,desc=desc)

The keywords should be the name of the columns in the model

Thread Thread
 
shailesh6363 profile image
Shailesh Waghole

Hello Soumya,
After changing it's working fine. Thanks for my correction. Please reply me back with your contact details. I want to add you to my contact.

Thread Thread
 
soumyaranjannaik profile image
Soumya Ranjan Naik • Edited

You can contact me on telegram on
t.me/soumya_r