﻿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
15212	get_actions() always needs to return SortedDict, not list	philomat	nobody	"All docs state that get_actions() returns a dict. From documentation of ModelAdmin.get_actions():

{{{
        """"""
        Return a __dictionary__ mapping the names of all actions...
        """"""
}}}

However:

{{{

        if self.actions is None or IS_POPUP_VAR in request.GET:
            return [] # list!
}}}

This can lead to problems when you extend that method and expect a dict, and treat its return value as such trying to modify its elements. My patch returns an empty SortedDict.


"		closed	contrib.admin	dev		fixed			Unreviewed	1	0	0	0	0	0
