Re: custom query as the choices for dropdown

2008-11-05 Thread Rajesh Dhawan
Hi, > In the quest to build my web sales inventory system, I want to specify > that only stock that are available be listed in the dropdown. > > So my question is can I use a custom query to feed the choices for my field? Yes. See ModelChoiceField.queryset here:

custom query as the choices for dropdown

2008-11-05 Thread Low Kian Seong
Dear all, In the quest to build my web sales inventory system, I want to specify that only stock that are available be listed in the dropdown. So my question is can I use a custom query to feed the choices for my field? Thank you. -- Low Kian Seong blog: http://lowkster.blogspot.com