Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

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

fixes #1334
  • Loading branch information...
1 parent 4751c8f commit 5b0524eadb5ea14312fab9d4c97fa7b578c6eac8 @piquadrat piquadrat committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  cms/
2  cms/
@@ -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:

0 comments on commit 5b0524e

Please sign in to comment.
Something went wrong with that request. Please try again.