trappedIntoCode
trappedIntoCode

Reputation: 805

AttributeError: 'unicode' object has no attribute '_meta'

I am getting this error on "python manage.py migrate contacts".

The error info does not pinpoint problem location.

Here is the error description:

http://dpaste.com/68162/

Hers is a sample model definition:

http://dpaste.com/68173/

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

Answers (1)

trappedIntoCode
trappedIntoCode

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

Related Questions