We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8109d commit 31812bdCopy full SHA for 31812bd
django_elasticsearch_dsl/documents.py
@@ -69,7 +69,7 @@ def get_queryset(self):
69
"""
70
Return the queryset that should be indexed by this doc type.
71
72
- primary_key_field_name = self.django.model_meta.pk.name
+ primary_key_field_name = self.django.model._meta.pk.name
73
return self.django.model._default_manager.all().order_by(primary_key_field_name)
74
75
def prepare(self, instance):
0 commit comments