Reputation: 805
I am getting this error on "python manage.py migrate contacts".
The error info does not pinpoint problem location.
Here is the error description:
Hers is a sample model definition:
Can someone point me to right direction???
I got this: http://blog.e-shell.org/66
but can not figure out the problem.
Upvotes: 1
Views: 4445
Reputation: 805
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.
Upvotes: 2