On submitting data using get errors

12 views
Skip to first unread message

nitin kumar

unread,
Sep 2, 2019, 11:50:55 AM9/2/19
to Django users
On submitting data using text field of html getting error of
form2() got an unexpected keyword argument 'aname'
Where
Form2()- class defined in model
aname- attribute of class
In other way form2 is table with column Anne
Db - postgresql

Suraj Thapa FC

unread,
Sep 2, 2019, 12:00:03 PM9/2/19
to django...@googlegroups.com
Code pls 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3decfa9b-ec45-467e-b4a7-01e083d60e83%40googlegroups.com.

nitin kumar

unread,
Sep 2, 2019, 3:02:22 PM9/2/19
to django...@googlegroups.com
Please find models.py, views.py and error on browser

Thanks

troubles1.JPG
troubles3.JPG
troubles2.JPG

Nitin Kumar

unread,
Sep 2, 2019, 4:22:51 PM9/2/19
to django...@googlegroups.com
form3 at line 16 is no longer model form3 you imported in line 3
it is a function you defined at line 8.

So form3 does not take **kwargs.
at line 16 you are passing keyword arguments to the form3 function defined in line 8.

Use camel-case to define models.



Most. Runa

unread,
Sep 2, 2019, 6:16:27 PM9/2/19
to Django users
R u fuck me brothe. My husband is daed

nitin kumar

unread,
Sep 2, 2019, 11:46:01 PM9/2/19
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages