mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-22 02:21:50 -05:00
reply_to requires template_type to be already set, but the order of attribute assignment is not defined when a model object is created from a dictionary. This adds a constructor to Template model that makes sure that template_type is set first when multiple arguments are passed to the constructor at once. The problem might still exist when the template is created through the API, so this is a temporary fix to unblock the release.
59 KiB
59 KiB