I can do it!) I transferred table 'languages' from tables.py to db.py,
becouse I need use it in extra_fields when tables.py file is not still
included.
db.py
db.define_table(
'languages',
Field('NAME',length=30)
)
auth.settings.extra_fields['auth_user']= [Field('language','reference
languages',label=T('Language'),requires = IS_IN_DB(db,db.languages.id,
'%(NAME)s'))]
Result was like on picture, but I want to ask why I had one empty option in
select? Is there way to exclude it?
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/57cc8820-0e6f-4ec7-9735-e0ed3b238360%40googlegroups.com.