Huh? latest returns an instance of the model, not a list or queryset so that would raise an exception. Also are we sure that query you posted is coming from this line?