2👍
✅
Figured out the problem. There was this line:
note = GenericRelation('Comment', object_id_field='object_pk')
in model Company
and Person
. But Comment
class was undefined. I commented the line at both places. It works now.
Thanks for your time.
Source:stackexchange.com