This is surely nitpicking, but you can just write:
if form.get('period'):
As get() will return a None if the key is not present.
I made this tiny change.
« Back to merge proposal
This is surely nitpicking, but you can just write:
if form.get('period'):
As get() will return a None if the key is not present.
I made this tiny change.