check variable for None before access in template
make db param in bulk_save_retry() mandatory