hello,

Is there a way to return an attribute of a related class?
ie: return self.choice.someattr


class Answer(meta.Model):
        user = meta.ForeignKey(User)
        question = meta.ForeignKey(Question)
        choice = meta.ForeignKey(Choice)

        def __repr__(self):
                return self.choice


As you can see, with the class being comprised soley of foreign keys
there isn't anything very descriptive about it ... this makes the admin
interface pretty unwieldly. 

Any suggestions would be great :)

Reply via email to