Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 06d016d

Browse files
author
John Belmonte
committed
merge RELEASE_NOTES update to head
1 parent 2f5b65a commit 06d016d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ndb/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ class JsonProperty(BlobProperty):
16821682

16831683
_json_type = None
16841684

1685-
@utils.positional(BlobProperty._positional)
1685+
@utils.positional(1 + BlobProperty._positional)
16861686
def __init__(self, name=None, compressed=False, json_type=None, **kwds):
16871687
super(JsonProperty, self).__init__(name=name, compressed=compressed, **kwds)
16881688
self._json_type = json_type

ndb/model_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ class MyModel(model.Model):
12361236

12371237
def testJsonProperty(self):
12381238
class MyModel(model.Model):
1239-
pkl = model.JsonProperty()
1239+
pkl = model.JsonProperty('pkl')
12401240
sample = [1, 2, {'a': 'one', 'b': [1, 2]}, 'xyzzy', [1, 2, 3]]
12411241
ent = MyModel(pkl=sample)
12421242
ent.put()

0 commit comments

Comments
 (0)