Re: Proper way to handle nested data (deeply nested)

2014-05-02 Thread m1chael
This may or may not work for you, but did you see https://github.com/tabo/django-treebeard/ ? On Fri, May 2, 2014 at 6:17 PM, Scott Harper wrote: > Okay, so here's what I ended up going with: > > Rather than nested inline form sets, I made a formset for all of the > encounters related to the ma

Re: Proper way to handle nested data (deeply nested)

2014-05-02 Thread Scott Harper
Okay, so here's what I ended up going with: Rather than nested inline form sets, I made a formset for all of the encounters related to the map. Then, in my template when I iterate across all the nodes, I'm comparing all the encounters' nodes with the current node, and from there adding each enc

Proper way to handle nested data (deeply nested)

2014-05-02 Thread Scott Harper
I am using django as a tool for editing data for a game I'm working on; but I have some pretty deeply-nested relationships, and I'm hitting some problems getting forms to work properly. The setup: I have a data structure for nodes in a map. Each map has many nodes; each node has many encounters