On Fri, Apr 10, 2009 at 4:05 AM, chris <cwitt...@gmail.com> wrote:
> So I want to find out how many characters do occur in which edition
> and I get the result as expected.  However, instead of the edition
> objects, what I get back are the pk values of the edition.

This is expected behavior; when you use values() you are saying "I do
not want the full objects, I only want raw database values". And the
raw DB value for a foreign key relationship is whatever value happens
to be in that column -- in this case, the ID.



-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to