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:
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
2 matches
Mail list logo