Adding nodes via tastypie api - lft cannot be null

115 views
Skip to first unread message

Kevin Brolly

unread,
Dec 16, 2011, 7:01:32 AM12/16/11
to django-mptt-dev
Hi there,

I am trying to add nodes to an mptt tree via my tastypie API.

The nodes are being passed in with an integer id already assigned, but
this seems to be causing the error: IntegrityError: (1048, "Column
'lft' cannot be null")

Does django-mptt not allow nodes to be assigned an id when first
created?

Thanks,
Kevin

Reply all
Reply to author
Forward
0 new messages