devlup-labs / iitj_family_tree

Family tree for SWC IITJ
1 stars 5 forks source link

changes parentId for first batch to none #75

Closed Ronak-23 closed 2 years ago

Ronak-23 commented 2 years ago

For d3.stratify to work the parent id for the first batch needs to be null, undefined or an empty string but current code has parentId as "root". This pr fixes this issue. Also added csrf_exempt in urls.py for a cors error.