Skip to content

Commit 24906a1

Browse files
author
oko-x
committed
triv: fake inline improvement
1 parent 7a1ee73 commit 24906a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_smartbase_admin/engine/fake_inline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def get_fake_inline_identifier_annotate(self):
114114
# result of this method is used in fake_inline_queryset.annotate(SBAdminFakeInlineMixin.fk_name='result')
115115
# example usage:
116116
# return F('some_model__relationship_to_parent')
117-
return F("id")
117+
return F("pk")
118118

119119
def get_queryset(self, request):
120120
model = self.original_model

0 commit comments

Comments
 (0)