Skip to content

Commit

Permalink
id__in -> pk__in
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsir911 committed Aug 9, 2023
1 parent 32bf4f1 commit 7a281d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple_history/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get_queryset(self):
self.through, self.instance
)
return qs.filter(
id__in=through_qs.all().values_list(self._m2m_through_field_name, flat=True)
pk__in=through_qs.all().values_list(self._m2m_through_field_name, flat=True)
)


Expand Down

0 comments on commit 7a281d0

Please sign in to comment.