github tortoise/tortoise-orm 0.16.13
v0.16.13

latest releases: 0.20.0, 0.19.3, 0.19.2...
3 years ago
  • Default install of tortoise-orm now installs with no C-dependencies, if you want to use the C accelerators, please do a pip install tortoise-orm[accel] instead.
  • Added <instance>.clone() method that will create a cloned instance in memory. To persist it you still need to call .save()
  • .clone() will raise a ParamsError if tortoise can't generate a primary key. In that case do a .clone(pk=<newval>)
  • If manually setting the primary key value to None and the primary key can be automatically generated, this will create a new record. We however still recommend the .clone() method instead.
  • .save() can be forced to do a create by setting force_create=True
  • .save() can be forced to do an update by setting force_update=True
  • Setting update_fields for a .save() operation will strongly prefer to do an update if possible

Don't miss a new tortoise-orm release

NewReleases is sending notifications on new releases.