报错AttributeError: ‘ForeignKey’ object has no attribute ‘rel’

return SearchGroupRow(title, field_object.rel.model.objects.filter(**db_condition), self, request.GET)

修改为

return SearchGroupRow(title, field_object.remote_field.model.objects.filter(**db_condition), self, request.GET)

 

posted @ 2021-08-01 17:33  成强  阅读(83)  评论(0编辑  收藏  举报