Display user name in reference to user id in django template

Posted by Ed on Stack Overflow See other posts from Stack Overflow or by Ed
Published on 2010-04-02T16:30:30Z Indexed on 2010/04/02 16:33 UTC
Read the original article Hit count: 364

Filed under:
|
|
|

I expect this is an easy question. For some reason, I don't have a solution yet.

I have an object set from django reversion: version_list. Each object in the set has a user id attached to it. How do I grab the user names that correspond to the user ID's?

To try to be clearer, if each object in version_list has a name, date, and user id, how can I join the version_list set with the user table to figure out what user id goes with which name? This is done in the view, or the template?

© Stack Overflow or respective owner

Related posts about django

Related posts about user