Skip to content

Commit 636bae1

Browse files
committed
Remove None key value in pdf export
Remove None fields from email and pdf
1 parent 2a3cb5d commit 636bae1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flash_update/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ def get_email_context(instance):
5959
"actions_taken": actions_taken,
6060
"resources": resources,
6161
}
62+
email_context = {key: value for key, value in email_context.items() if value is not None}
6263
return email_context

0 commit comments

Comments
 (0)