Permalink
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 @beniwohli beniwohli committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit 5b0524e

Please sign in to comment.