Fixes the CIP Planner, which was broken after we added the new Phase model. There's no issue for this.
Demo
This demo only works because my local database had existing Phase data that I created when working on PR #84.
Notes
Is there a better way to deal with the Project/Phase relationships using the ORM? select_related and prefetch_related wouldn't work, so I ended up querying it like this code implementation. Seems like that would be inefficient with a ton of unnecessary database queries?
The values in phase column aren't exactly the same as the Phase model_choices since that data was pre-existing before we added the Phase model with model_choices. You'll see phase_1 instead of something like implementation. You can see my demo to see what the real values would look like.
Overview
Fixes the CIP Planner, which was broken after we added the new
Phase
model. There's no issue for this.Demo
This demo only works because my local database had existing Phase data that I created when working on PR #84.
Notes
Is there a better way to deal with the
Project
/Phase
relationships using the ORM?select_related
andprefetch_related
wouldn't work, so I ended up querying it like this code implementation. Seems like that would be inefficient with a ton of unnecessary database queries?Testing Instructions
phase_1
instead of something likeimplementation
. You can see my demo to see what the real values would look like.