﻿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
24055	Keep reference to view class for resolve()	Collin Anderson	nobody	"I have some pretty hacky code like this that I'd like to get rid of:

{{{
match = resolve(url_split)
for cl in match.func.__closure__:
    if hasattr(cl.cell_contents, 'http_method_names'):
        view_class = cl.cell_contents
        # etc
    if hasattr(cl.cell_contents, 'admin_site'):
        admin = cl.cell_contents
        if not admin.has_change_permission(etc):
            etc
}}}
It would be great if we could keep a reference to the original view class in these cases."	New feature	closed	Generic views	dev	Normal	fixed			Accepted	1	1	0	0	0	0
