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.
On Tue, Sep 3, 2019 at 12:31 AM nitin kumar <nit.kumar2302@gmail.com> wrote:
Please find models.py, views.py and error on browserThanks--On Mon 2 Sep, 2019, 9:29 PM Suraj Thapa FC, <surajthapafc@gmail.com> wrote:Code pls--On Mon, 2 Sep, 2019, 9:20 PM nitin kumar, <nit.kumar2302@gmail.com> wrote: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
--
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+unsubscribe@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.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcG_GC1tm72z%3D%2BSPF1jKOzgrox2WJ0pAn0Wp%2BM2Gp9FjFQ%40mail.gmail.com.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACNQfLEpQwgP2xDWEU16EiX%2B%2BA3myw3gB_wqQea4c74M1a1g7A%40mail.gmail.com.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKzNicH0PujwYrkgZQ7dMA9sP9VhQMpE6k%2BFt9LTWJuH9W-WRQ%40mail.gmail.com.
No comments:
Post a Comment