If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    aleksdj  5 years ago
    I think I saw a way to append fields to table using only a variable, something like this in pseudocode: variable auditFields = defineFields (unique_id =Field('unique_id','boolean',default=uuid.uuid4(),writable=False,readable=False), bla bla) and now, for each table you can do: db.define_table('mytable', other fields,.., auditFields) I couldnt find it but I'm almost sure that I saw it.

Commented on:

draft

Hosting graciously provided by:
Python Anywhere