On Friday, December 16, 2016 at 5:00:10 PM UTC-5, icodk wrote: > > Not sure understanding you suggestion > In which case ? >
In case you are editing a record and all categories have already been assigned, you can set the category field to be read-only rather than showing a select widget with only a single option. > available_categories is an unresolved query until too late > Could you please elaborate ? > When you're not on the edit page, you can check whether the available_categories set is empty, and if so, eliminate the "Add" button. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

