I know I can simply use the label parameter but thought it would be
nice if by default SQLFORM used the referenced field name when using
IS_IN_DB validator. For example, if I have:

db.album.artist_id.requires=IS_IN_DB(db,db.artist.id,db.artist.name)

The label will be Artist Id but I would like it to be Artist Name
since it will be rendered as a drop down list of artist names.

Please pardon my laziness.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to