Hello!

I'm new to web2py and need something like this. I'm opened  to all
kind of suggestions

db.define_table('contacts',
                            Field('first'),
                            Field('last'),
 
Field('jmbg',unique=True,default=db.contacts.id),   #this doesn't work
but, if nothing is entered here I need it to be id      value
 
Field('jib',unique=True,default=db.contacts ))

Reply via email to