django-modelcluster icon indicating copy to clipboard operation
django-modelcluster copied to clipboard

values_list('pk') not working

Open mihalikv opened this issue 10 months ago • 2 comments

If you have FakeQueryset and try to do .values_list('pk') it raises exception that pk field doesn't exists. This syntax works in plain Django queryset. Workaround: Just replace pk with id.

Image

mihalikv avatar Feb 24 '25 16:02 mihalikv

Hello @mihalikv, can you assign this task to me, happy to contribute.

kehach07 avatar Dec 06 '25 07:12 kehach07

@kehach07 You are welcome to work on any issue that isn't already being worked on - you don't have to ask to be assigned. Please see https://github.com/wagtail/wagtail/wiki/Why-you-shouldn't-ask-to-be-assigned-an-issue

gasman avatar Dec 06 '25 09:12 gasman