openpolis / open-action

Source code repository for the OpenAction project.
0 stars 3 forks source link

Action.relateds_by_owner raises an Exception #7

Closed joke2k closed 11 years ago

joke2k commented 11 years ago
    @property
    def relateds_by_owner(self):
        ''' Actions which have the same authors
        '''
        return Action.objects.filter(thread__question__author=self.owner)

quando viene usato nel template con {% for action_related in action.relateds_by_owner %} lancia una eccezione:

TemplateSyntaxError at /action/7/
Caught FieldError while rendering: Cannot resolve keyword 'question' into field. 
Choices are: accepted_answer, action, added_at, answer_accepted_at, 
answer_count, approved, close_reason, closed, closed_at, closed_by, 
favorited_by, favoritequestion, favourite_count, followed_by, id, last_activity_at, 
last_activity_by, posts, score, tagnames, tags, title, view_count
matteo88 commented 11 years ago

ho lasciato un commento sull bug #15