mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-04 17:53:57 -05:00
Since the version classes hinge on delicately preserving the session, we need to take lots of care to ensure that we don't accidentally flush half-way through. By joinedloading the template_redacted beforehand, we prevent a flush which would inadvertantly remove the Service object from the session, while it's still waiting in line to be versioned.