github tortoise/tortoise-orm 0.13.0
v0.13.0

latest releases: 0.20.0, 0.19.3, 0.19.2...
5 years ago

Warning:

This release brings with it, deprecation of Python 3.5

We will increase the minimum supported version of Python to 3.6, as 3.5 is reaching end-of-life,
and is missing many useful features for async applications.

We will discontinue Python 3.5 support on the next major release (Likely 0.14.0)

New Features:

  • Example Sanic integration along with register_tortoise hook in contrib (#163)
  • .values() and .values_list() now default to all fields if none are specified.
  • generate_schema() now generates well-formatted DDL SQL statements.
  • Added TruncationTestCase testing class that truncates tables to allow faster testing of transactions.
  • Partial saves are now supported (#157): obj.save(update_fields=['model','field','names'])

Bugfixes:

  • Fixed state leak between database drivers which could cause incorrect DDL generation.
  • Fixed missing table/column comment generation for ForeignKeyField and ManyToManyField
  • Fixed comment generation to escape properly for SQLite
  • Fixed comment generation for PostgreSQL to not duplicate comments
  • Fixed generation of schema for fields that defined custom source_field values defined
  • Fixed working with Models that have fields with custom source_field values defined
  • Fixed safe creation of M2M tables for MySQL dialect (#168)

Docs/examples:

  • Examples have been reworked:
    • Simplified init of many examples
    • Re-did generate_schema.py example
    • A new relations_recirsive.py example (turned into test case)
  • Lots of small documentation cleanups

Don't miss a new tortoise-orm release

NewReleases is sending notifications on new releases.