I am trying to create a user tree using django-mptt
. I have auth_user
table and a one-to-one mapping table UserProperties
which has a foreign key of auth_user
.
I added TreeForeignKey
of django-mptt in UserProperties
model(parent
column) on User table. But it is failing while creating objects with following error:
'User' object has no attribute 'is_root_node'