Repository navigation
2.6.4
Updating so some of the new APIs are available on pypi. Note that I did not draft any notes for 2.6.3, so most of those changes are included here.
Bugs fixed
- #646, fixed a bug with the Cython speedups not being included in package.
- #654, documented how to create models with no primary key.
- #659, allow bare
INSERTstatements. - #674, regarding foreign key / one-to-one relationships.
- #676, allow
ArrayFieldto accept tuples in addition to lists. - #679, fix regarding unsaved relations.
- #682, refactored QueryResultWrapper to allow multiple independent iterations over the same underlying result cache.
- #692, fix bug with multiple joins to same table + eager loading.
- #695, fix bug when connection fails while using an execution context.
- #698, use correct column names with non-standard django foreign keys.
- #706, return
datetime.timeinstead oftimedeltafor MySQL time fields. - #712, fixed SQLite migrator regular expressions. Thanks @sroebert.
New features
- #647, #649, #650, added support for
RETURNINGclauses. Update, Insert and Delete queries can now be called withRETURNINGto retrieve the rows that were affected. See docs. - #685, added web request hook docs.
- #691, allowed arbitrary model attributes and methods to be serialized by
model_to_dict(). Docs. - #696, allow
model_to_dict()to introspect query for which fields to serialize. - Moved custom fields into their own playhouse module. Docs.
- Added backend-agnostic truncate_date() implementation.
- Added a
FixedCharFieldwhich uses column typeCHAR. - Added support for arbitrary
PRAGMAstatements to be run on new SQLite connections. Docs. - Removed
berkeley_build.shscript. See instructions on my blog instead.