Re: [web2py] cannot redefine field

2013-07-21 Thread K. Antonis Tzorvas
you are right, forgotten about the .requires part :/ thanks! On Sunday, July 21, 2013 9:32:15 PM UTC+3, Jonathan Lundell wrote: > > On 21 Jul 2013, at 11:28 AM, "K. Antonis Tzorvas" > > > wrote: > > db.define_table('station', > Field('name'), > Field('country', 's

Re: [web2py] cannot redefine field

2013-07-21 Thread Jonathan Lundell
On 21 Jul 2013, at 11:28 AM, "K. Antonis Tzorvas" wrote: > db.define_table('station', > Field('name'), > Field('country', 'string'), > Field('city', 'string'), > Field('records_file', 'upload'), > format='%(name)s', >

[web2py] cannot redefine field

2013-07-21 Thread K. Antonis Tzorvas
db.define_table('station', Field('name'), Field('country', 'string'), Field('city', 'string'), Field('records_file', 'upload'), format='%(name)s', migrate=False) db.station.name.requires = IS_NOT_IN_DB(