Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Commit 3d30a66

Browse files
committed
Mmm?
1 parent 2bc2e31 commit 3d30a66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

elasticutils/contrib/django/tests/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ def __init__(self, **kw):
8989
setattr(self, key, kw[key])
9090
_model_cache.append(self)
9191

92+
@property
93+
def pk(self):
94+
return self.id
95+
9296

9397
class FakeDjangoMappingType(MappingType, Indexable):
9498
@classmethod

0 commit comments

Comments
 (0)