Thanks again. I will be revising my models to include the default for the foreign key.
On May 28, 6:26 pm, annet.verm...@gmail.com wrote: > Vihang, > > > I would prefer an error is raised if the value is not provided... > > Defining a validator IS_NOT_EMPTY() or IS_IN_DB(...) solves this > problem. > > > I was wondering whether a default is essential with a notnull, since the > > databases do > > not really need the default. > > default='' doesn't hurt;-) I did not need a default either and at > first I regarded the default='' as an unsatisfactory solution, but it > solved my problem!?! > > Annet --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---