Have a plan for your view, then implement it one step at a time. After each step, test it to make sure it’s doing what you expect. Then refer back to your plan after each step. That’s how you can end up tackling complicated and complex features without getting lost in implementation.
Hi TIm, I solved my problem but with using django-mptt. Just wanted to say thanks for your help! The topic can be closed.