Since I have time and integer fields I cannot set default to ''. What do you suggest for a solution?
On Monday, June 10, 2013 5:32:33 PM UTC+2, Niphlod wrote: > > The second one you said (i.e. altering the default repr for None values). > From a "theoretical" standpoint, a null value is not an empty string. If > your app doesn't care for the difference, set a default='' on the > interested fields. > > Il giorno lunedì 10 giugno 2013 15:42:21 UTC+2, Lamps902 ha scritto: >> >> If there's a NULL value in my postgresql DB, SQLFORM.grid renders it as >> "None". Is it there something that can be done globally for an SQLFORM.grid >> that would simply make it display all NULL values as an empty string (i.e. >> not display anything in the grid for NULLs), or does that have to be >> determined individually for every field by setting the respective field's >> *represent >> *parameter? Thanks. >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.