a, i got it, thank you so much for your detail explaination and example,
villas.
On Sun, May 15, 2011 at 5:27 PM, villas wrote:
> It is simply how that record id will be displayed when used in a
> foreign key.
>
> e.g.
>
> table colors:
> id: 1, name: red,
> id: 2, name: yellow,
>
> table
It is simply how that record id will be displayed when used in a
foreign key.
e.g.
table colors:
id: 1, name: red,
id: 2, name: yellow,
table cars:
id: 1, descr: sport, color_id: 1
When you create a form for 'cars', how would you like the color_id
field to appear?
a) a drop-down
I still don't understand Record Representation. Is there a plain english
description or, better, examples of what it actually does?
i'm understand right now, thank you so much for your detail explaination.
On Sun, May 15, 2011 at 5:02 AM, Anthony wrote:
> On Saturday, May 14, 2011 5:37:39 PM UTC-4, 黄祥 wrote:
>>
>> hi,
>>
>> is there anyone can explain about the usage of default?
>>
>> e.g. on http://web2py.com/book/default/c
On Saturday, May 14, 2011 5:37:39 PM UTC-4, 黄祥 wrote:
>
> hi,
>
> is there anyone can explain about the usage of default?
>
> e.g. on http://web2py.com/book/default/chapter/03#Adding-CRUD
> db.comment.image_id.default = image.id
You can read about it here:
http://web2py.com/book/default/cha
5 matches
Mail list logo