Saturday, June 27, 2020

change charfield to list and create insert form

Hi All,

I am creating my first django project where i have inserted some data in table which is oracle table.

Now i created insert form where i will put up data and submit which will add a row in table.

Currently the form is rendered through model class and i am getting text box on one charfield whereas i wanted to have drop down with fixed values. 

Can someone guide me on how to put drop down in form with charfield, i can put up fixed value where use any of those values and submit

--
Thanks
Ashish

--
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/CAMjennDWcy2bYbL-XW1LMzZfK9jappXpe78c7fw47PZhdGQFFw%40mail.gmail.com.

No comments:

Post a Comment