Skip to content

Commit

Permalink
#543: Fix User.pk reference (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeriksp authored Jul 13, 2023
1 parent a84889e commit 909a3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explorer/views/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _build_queries_and_headers(self):
pattern = re.compile(r'[\W_]+')

headers = Counter([q.title.split(' - ')[0] for q in self.object_list])
query_favorites_for_user = QueryFavorite.objects.filter(user_id=self.request.user.id).values_list('query_id',
query_favorites_for_user = QueryFavorite.objects.filter(user_id=self.request.user.pk).values_list('query_id',
flat=True)

for q in self.object_list:
Expand Down

0 comments on commit 909a3a1

Please sign in to comment.