I have the following
featured = (0,1,2,3,4,5)
Field('rank','list:integer',requires=IS_IN_SET(featured, zero='rank'),
readable=False, writable=False),
So this field can only be set from appadmin and is set by default to
[] when a record is made, IIUC.
I want to select the tables that have been seti to something in
admin, so i do the following
tables = db(db.my_table.rank >
[0]).select(orderby=db.my_table.featured_rank)
but tables also contains the entries that have the default value []
What am i doing wrong?
Also can i set a default value to my field ???