mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-04 21:38:20 -04: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.