Skip to content

Add get_or_none, fix quoting sql keyword names in order_by queries

Compare
Choose a tag to compare
@collerek collerek released this 23 Mar 16:46
· 899 commits to master since this release
f4fa551

0.10.1

Features

  • add get_or_none(**kwargs) method to QuerySet and QuerysetProxy. It is exact equivalent of get(**kwargs) but instead of raising ormar.NoMatch exception if there is no db record matching the criteria, get_or_none simply returns None.

Fixes

  • Fix dialect dependent quoting of column and table names in order_by clauses not working
    properly in postgres.