{% with options=widget.get_options|list %} {% firstof options.0.options.details.JOURDATE options.0.options.details.day_str as first_day %} {% with first_monday=first_day|adjust_to_week_monday last_option=options|last %} {% firstof last_option.options.details.JOURDATE last_option.options.details.day_str as last_day %} {% with last_sunday=last_day|adjust_to_week_monday|add_days:6 %} {% now 'W' as current_week %} {% spaceless %}