Brainfart has left the building
print(model_to_dict(row, exclude = (row.created, row.updated)))
should have been
print(model_to_dict(row, exclude = (model.created, model.updated)))
--
https://mail.python.org/mailman/listinfo/python-list
Hi all,
couldn't find a group for Peewee, so here I am:
Given a table structure of
{'id': ,
'username': ,
'password': ,
'created': ,
'updated': }
Using playhouse.shortcuts:
def ListAll(model):
for row in model.select():
print(model_to_dict(row, exclude = (row.created, row.