A information: I'm using SQLFORM.grid...
On Sat, Jan 26, 2013 at 12:05 PM, __pyslan__ - Ayslan Jenken < [email protected]> wrote: > Hi, Bruno! > > Yes, is SQLite... But the default for "required" argument is False , > don't? Even so I added the "required=False", deleted the database and > didn't work... > > Thanks, man! > > > > On Sat, Jan 26, 2013 at 11:38 AM, Bruno Rocha <[email protected]>wrote: > >> is it SQLite? did you changed required from True to False? >> >> SQLite does not have ALTER for column type and constraints. >> Em 26/01/2013 10:04, "__pyslan__ - Ayslan Jenken" < >> [email protected]> escreveu: >> >>> My models: >>> >>> LogrType = db.define_table('logr_type', >>> Field('name', notnull=False, label=T("Name")), >>> format='%(name)s' >>> ) >>> >>> Venture = db.define_table('venture', >>> Field('venture_type', 'reference venture_type', notnull=True, >>> label=T("Type")), >>> Field('venture_situation', 'reference venture_situation', >>> notnull=True, default=1, label=T("Situation")), >>> Field('name', notnull=True, label=T("Name")), >>> Field('logr_type', 'reference logr_type', notnull=False, >>> label=T('Logr Type')), >>> Field('logr', notnull=False, label=T('Logradouro')), >>> Field('logr_number', notnull=False, label=T('Number')), >>> Field('logr_compl', notnull=False, label=T('Complement')), >>> Field('logr_neigh', notnull=False, label=T('Neighborhood')), >>> Field('logr_city', notnull=False, label=T('City')), >>> Field('logr_state', notnull=False, label=T('State')), >>> Field('logr_zip_code', notnull=False, label=T('Zip Code'), >>> default=""), >>> format='%(name)s' >>> ) >>> >>> >>> When I add, or edit a venture, the logr_type is required...and should >>> not be.. >>> >>> >>> Thanks... >>> >>> __pyslan__ >>> >>> -- >>> >>> >>> >>> >> -- >> >> >> >> > > --

