Add initializer function to run on form generation for reporting libraries.
Fix template timedelta filter.