Maybe because your orders._format mentions invalid fieldnames, i.e.,
phone2_id and deal_id.

On Sat, Aug 31, 2013 at 5:26 AM, Dmitry Ermolaev <eds.pr...@gmail.com> wrote:
> How show names instead id in complex base?
>
>
> db.define_table('phones',
>    Field('number', length=12, unique=True),
>    Field('text', 'text'),
>    format='%(number)s',
>    )
> db.define_table('orders',
>     Field('name', required=True, notnull=True),
>     Field('created_on', 'datetime', writable=False, default=request.now),
>     Field('phone_id', 'reference phones', label='Phone',
>     format='%(name)s %(phone2_id)s %(deal_id)s %(created_on)s',
>     )
> db.define_table('payments',
>     Field('order_id', 'reference orders', label='order'),
>     Field('value', comment='received'),
>     Field('created_on', 'datetime', writable=False, default=request.now),
>     format='%(order_id)s %(value)s %(created_on)s',
>     )
>
> when I add a payments I see in list .id ((
>
>
>
> --
>
> ---
> 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.

-- 

--- 
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.

Reply via email to