> > Field('created_by',db.auth_user,default=auth.user.id) > > *1º Question * > I have a custom form and if i do not exlicit code this > > <span class="label label">Criado > por</span><div>{{=form.custom.widget.created_by}}</div> > > i cannot save it. Form errors? Its a default and i dont want to see it. > Do i really have to use it in my custom form? >
Should be: Field('created_by',db.auth_user,default=auth.user.id, writable=False) *2º Question* > Showing this field in the form i see this > Antonio Ramos (1) > How can i remove the "(1)" ??? > db.auth_user._format = '%(first_name)s %(last_name)s' Anthony > -- --- 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/groups/opt_out.