ednapiranha/webtools-workermgmt — comment on commit 51c8e16f28af282a71a445e4096f4dcc133f1164
File: apps/webtools/utils.py line 160
By fwenzel:

This should be a dictionary instead:

template_name = {
'employee': "emails/email_employee_%s.txt" % (mail_request_type),
...}.get(form_action)

then template_name will either be one of the options or ``None`` if none matched.