is there a way how to obtain last saved row in database while using peewee with all its attributes? Let's say I do this:
user = User.create(
email = request.json['email'],
nickname = request.json['nickname'],
password = request.json['password'],
salt = "salt"
)
But user.id
is None
and the only attributes I can get are those specified above.
I could call select()
method but isn't there there any faster way?
Thanks