Hi everyone!

How can I limit number of subscribers in certain course? Only 20 in Oficina 
1, and 15 in oficina 2...

My Model:
db = DAL('sqlite://storage.sqlite')
db.define_table('inscritos',
                Field('nome','string'),
                Field('email','string'),
                Field('cpf','string', unique = True),
                Field('dtcadastro','date'),
                Field('Oficina', requires=IS_IN_SET(['Oficina 1', 'Oficina 
2', 'Oficina 3'])),
               Field('Resumo','upload'))


-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to