Closed joke2k closed 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:
{% for action_related in action.relateds_by_owner %}
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
ho lasciato un commento sull bug #15
quando viene usato nel template con
{% for action_related in action.relateds_by_owner %}
lancia una eccezione: