I would try changing this line...:
db.post.category.requires=[IS_NOT_EMPTY(), IS_IN_DB(db,
db.category.id, '%(name)s')]

...to this:
db.post.category.requires=IS_IN_DB(db, db.category.id, '%(name)s')

IS_IN_DB won't render a dropdown when it is part of a list of
validators. IS_NOT_EMPTY isn't needed because IS_IN_DB implies that
the field won't be empty.

Let me know if that doesn't work.


On Sep 5, 5:44 pm, eddwinston <[email protected]> wrote:
> Hi mr.freeze
>
> Here it is:http://pastebin.com/d2070a421
>
> On Sep 6, 1:20 am, "mr.freeze" <[email protected]> wrote:
>
> > Can you post your table definition and/or  'requires' statement? It
> > should look something like this:
>
> > db.dog.owner.requires = IS_IN_DB(db, 'person.id', '%(name)s')
>
> > On Sep 5, 5:16 pm, eddwinston <[email protected]> wrote:
>
> > > Reference field marked with IS_IN_DB(db, ..., ...) is not displayed as
> > > drop-down menu in the admin section.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to