404 for actions returned by get_object_actions() but not in objectactions
See original GitHub issueCurrently if an admin view overrides get_object_actions()
and returns an action not contained in the objectactions
view’s attr, then invoking the action from the admin interface results in a 404.
This occurs because BaseDjangoObjectActions. get_tool_urls
uses self. objectactions
, not self.get_object_actions()
.
It seems this might be unavoidable, but is unexpected since it’s not documented, and annoying if you’re trying to create a base/mixin admin view class that use get_object_actions()
to provide actions in addition to subclasses that provide their own.
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Web API 2: OData 4: Actions returning 404 - Stack Overflow
I found that the handler for ExtensionlessHandler-Integrated-4.0 already existed in the web.config, but it's original path=".", was not working.
Read more >IT17172: "404 NOT FOUND" RETURNED WHEN EXECUTING ...
When performing an RMI (Rest Management Interface) GET request for class metadata for an action class (operation), the appliance returns 404 Not Found....
Read more >404. That's an error. The requested URL was not found on this ...
The error message is coming form the ourhillcountryretreat server. The file being requested does not exist. It has nothing to do with Google...
Read more >DNN 404 Handling
Any URL that is requested for a site and which does not match any URL that … ... Because the 404 Error Page...
Read more >Plugin's action URL not working and showing 404 error
There's a 99% chance you're running into a case-sensitivity issue on your file system. Check your plugin's name, the handle and the action ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve faced the same issue just now.
get_object_actions()
method works if every action that it would conditionally enable or disable is listed above inchange_actions
orchangelist_actions
attribute. You should pass there everything that you may or may not use later.I don’t know whether it should be fixed or not, but such a behavior should be mentioned in documentation to avoid same questions in the future.
Are there any fixes available for this issue? I want to use these actions but i need the runtime customization of available actions per object.