db.define_table('mytable',
Field('start_number', 'double', requires=IS_NOT_EMPTY()),
Field('current_number', 'double', default=mytable.start_number, requires=IS_NOT_EMPTY()))
When something happens on the website, current_number
can be changed to something else, but will always start with the default value of start_number
(ie, when the entry is created). Each entry has a different start_number
.
I keep getting an error saying that mytable
can't be found, probably because it hasn't been fully defined yet. Is it still possible to set the default value of current_number
to start_number
?