On Saturday, October 1, 2016 at 10:18:55 AM UTC-4, Manuele wrote: > > Il 30/09/16 19:47, António Ramos ha scritto: > > Hello, i would like to suggest the ability to duplicate a record in > > admin. > > > > It would make me happy :) > what about doing it in your web2py console with something like: > db.table[0] = {k: v for k,v in db.table[id].iteritems() if k!='id'} >
A little simpler: db.mytable.insert(db.mytable._filter_fields(db.mytable(id))) Anthony -- 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.