But if you let the wizard create your tables you have the ID field in your models file. Like I have

db.define_table('t_payment_receiver',
Field('id','id', represent=lambda id:SPAN(id,' ',A('view',_href=URL('payment_receiver_read',args=id)))),
    Field('f_name', type='string', label=T('Name')),

Kenneth


On 13.1.2011 11:44, Vasile Ermicioi wrote:
db.define_table('table1', Field('field1'))

table1 will have 2 fields: field1 and id

if it is so then nothing strange, it is the way web2py's dal works
it always adds the field 'id' as primary key

Reply via email to