﻿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
24004	Can't use only() with latest() if x is in only() and get_latest_by	Tom Carrick	nobody	"
{{{
model Page(models.Model):
    ...
    last_modified = models.DateField()

    class Meta:
        get_latest_by = 'last_modified'
}}}

Suppose I want to get the date of the last modification, I might do something like this:

{{{ Page.objects.only('last_modified').latest() }}}

But on trying it, we seem to get stuck copying something until we reach maximum recursion depth.

I don't know if this is a bug or if it's simply not going to work, but if it's the latter, I think it could be documented somewhere."	Bug	closed	Database layer (models, ORM)	1.7	Normal	invalid			Unreviewed	0	0	0	0	0	0
