Updating Django MPTT tree from JSON
I need to update Django MPTT tree from JSON data. I am setting up django-mptt using Nestable ( http://dbushell.github.com/Nestable/ ) jQuery plugin for editing tree in frontend.
jQuery Nestable provides this data after updating the tree:
[{
"id": 1
}, {
"id": 2,
"children": [{
"id": 3
}, {
"id": 4
}, {
"id": 5,
"children": [{
"id": 6
}, {
"id": 7
}, {
"id": 8
}]
}, {
"id": 9
}, {
"id": 10
}]
}, {
"id": 11
}, {
"id": 12
}]
How can I update my mptt tree from this data?
Thank!
+3
source to share
No one has answered this question yet
Check out similar questions: