Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix the exception text of ``SubClassNeededError`` to reflect what is …

…really allowed. ``None`` isn't.

fixes #1334
  • Loading branch information...
commit 5b0524eadb5ea14312fab9d4c97fa7b578c6eac8 1 parent 4751c8f
Benjamin Wohlwend piquadrat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cms/plugin_base.py
2  cms/plugin_base.py
View
@@ -26,7 +26,7 @@ def __new__(cls, name, bases, attrs):
if not issubclass(new_plugin.model, CMSPlugin):
raise SubClassNeededError(
"The 'model' attribute on CMSPluginBase subclasses must be "
- "either 'None' or a subclass of CMSPlugin. %r on %r is not."
+ "either CMSPlugin or a subclass of CMSPlugin. %r on %r is not."
% (new_plugin.model, new_plugin)
)
# validate the template:
Please sign in to comment.
Something went wrong with that request. Please try again.