Method CMSPluginBase._get_render_template raises wrong exception
See original GitHub issueIn class CMSPluginBase
the method _get_render_template
raises a ValidationError
, if the returned template is None
. In my opinion the correct exception should be a TemplateDoesNotExist
exception, since a ValidationError
shall only be used to reject invalid form data.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
django-cms/plugin_pool.py at develop
raise ImproperlyConfigured(. "CMS Plugins must define a render template, ". "a get_render_template method or ". "set render_plugin=False: %s" % plugin. ).
Read more >Plugins - django cms 3.11.0 documentation
The template used to render the form when you edit the plugin. Example: class MyPlugin(CMSPluginBase): model = ...
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
@NicolaiRidani I think I can get started with this one.
This should be rather easy to fix.