On Nov 16, 3:21 pm, Sophie <kfarron...@gmail.com> wrote: > In my database i have a number field i have somethig like this > db.define_table("Inventory", > Field("idProduct", db.Product, label="Product"), > Field("quantity", "integer", default=None, label="Quantity")) > db.Inventory.idProduct.requires=IS_IN_DB( db, 'Product.id', ' % > (nProduct)s ') > If i want to leave the field quantity empty, it shows me that i must > put a numer between some range. Is there a way to put this field empy?
db.Inventory.quantity.requires = IS_NULL_OR(IS_INT_IN_RANGE(1, 9999999)) > Other validation i have problem is inserting states Unanswered F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---