class TextLogErrorGraph(DjangoObjectType): class Meta: model = TextLogError bug_suggestions = ObjectScalar() def resolve_bug_suggestions(self, info, **kwargs): return error_summary.bug_suggestions_line(self)
class FailureLineGraph(DjangoObjectType): class Meta: model = FailureLine action = ObjectScalar()