id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 25132 Document how to retrieve a single value using values_list() and get() Omer Katz Alex Morozov "This saves me the pain of typing the following code: foo_pk = MyModel.objects.only('pk').get(name='foo').pk Now you can type: foo_pk = MyModel.objects.get_value('pk', name='foo') Which is more intuitive. Pull Request at https://github.com/django/django/pull/5004 " Cleanup/optimization closed Documentation dev Normal fixed Accepted 1 0 0 0 1 0