﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37268	django 6.1 breaks Media objects with reverse_lazy entries	alex		"== Problem

sometimes you want to use reverse_lazy for referencing internal urls in forms, widgets and other Media objects.

With the new change to `Script`, `Stylesheet`, ... this fails. Both classes cannot lazy load and when a lazy object is defined it is tried to access `.__html__()` which fails.

What should happen instead is to resolve reverse_lazy when it is really required. Both classes should support lazy objects too.


== Why `reverse` won't work in such situations:

This won't work in admin. Calling `reverse` too early; e.g. when defining the media object can break the application.

"	Uncategorized	closed	Forms	6.1	Normal	duplicate			Unreviewed	0	0	0	0	0	0
