I'm trying to access the username of a journal post in a generic
object_detail/list view like this:

{{ object.poster.username }}

however I'm not getting anything whatsoever ... my model is

class Journal(meta.Model):
        poster = meta.ForeignKey(User, editable=False)
        subject = meta.CharField(maxlength=30)
        entry = meta.TextField(blank=True)
        ...

Is anything the problem or have I missed a caveat somewhere?


Alice

Reply via email to