mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 00:11:16 -05:00
We are formatting the postcode here, because if we did it in template preview, that could break flows like API and admin one-off, since we are not validating postcode there yet, and format_postcode needs a nice validated postcode. We are not doing it in admin, as then we would have to either rewrite the CSV file or pass data differently to API. First would be nasty, second is a lot of overhead. In the long run we might want to move postcode formatting to template preview so that the postcode in letter preview looks the same before and after user sends it, but now to get it out quickly it's better to format the postcode here in the task.
64 KiB
64 KiB