From 422ce4ab986513e75af51b5f40c0060de203fa7b Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Wed, 7 Nov 2018 16:44:45 -0800 Subject: [PATCH] Adding note to MIGRATION_NOTES about change in DateTimeProperty ctor. --- ndb/MIGRATION_NOTES.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ndb/MIGRATION_NOTES.md b/ndb/MIGRATION_NOTES.md index 95477bc791a78..8b0c4f025ef46 100644 --- a/ndb/MIGRATION_NOTES.md +++ b/ndb/MIGRATION_NOTES.md @@ -94,7 +94,9 @@ The primary differences come from: if `isinstance(self, TextProperty)`. We have removed this check since the implementation does the same check in `TextProperty._validate`. - The `BlobProperty` constructor only sets `_compressed` if explicitly - passed. The original set always (and used `False` as default) + passed. The original set `_compressed` always (and used `False` as default). + In the exact same fashion the `DateTimeProperty` constructor only sets + `_auto_now` and `_auto_now_add` if explicitly passed. - `TextProperty(indexed=True)` and `StringProperty(indexed=False)` are no longer supported (see docstrings for more info) - `model.GeoPt` is an alias for `google.cloud.datastore.helpers.GeoPoint`