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

Commit 97651e1

Browse files
committed
Replace id by pk in Indexable
1 parent 5c6cc87 commit 97651e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticutils/contrib/django/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,4 @@ def get_indexable(cls):
307307
308308
"""
309309
model = cls.get_model()
310-
return model.objects.order_by('id').values_list('id', flat=True)
310+
return model.objects.order_by('pk').values_list('pk', flat=True)

0 commit comments

Comments
 (0)