Thanks SO much. That did the trick.

Dave

On Jan 29, 1:28 pm, "alex.gay...@gmail.com" <alex.gay...@gmail.com>
wrote:
> On Jan 29, 3:48 pm, "dave.mer...@gmail.com" <dave.mer...@gmail.com>
> wrote:
>
> > This si a somewhat nooby question.
>
> > I have a comment. I want to display the post title for the
> > comment.object_id.
>
> > In the template I have been trying things like comment.post.title, but
> > that is not working.
>
> > I think it is due to the fact that Comments use a generic foreign key.
> > So... how do I do this?
>
> > Any references?
>
> > Lemme know.
> > Dave
>
> comment.content_object.title
> should get what you want
--~--~---------~--~----~------------~-------~--~----~
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