﻿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
37246	"""Database Representation"" section of Relationship Fields reference should clarify it is not referring to the `_id` syntax for foreign key values"	Jakub Nowak		"https://docs.djangoproject.com/en/6.1/ref/models/fields/#database-representation
The documentation says that one should never use `_id` fields. Unfortunately writing comparison as `author.book_id == book.pk` is better than `author.book == book`, because the latter causes `author.book` foreign object to be fetched from the database.

We could improve that by making it so that `author.book.pk` returns `author.book_id` without fetching `author.book` foreign object from the database."	Cleanup/optimization	new	Documentation	6.0	Normal			Jakub Nowak	Accepted	0	0	0	0	0	0
