From b2b763448f726ee952743596e9a34fcb154bdb12 Mon Sep 17 00:00:00 2001 From: Gregor MacGregor Date: Fri, 6 Sep 2013 13:24:52 -0500 Subject: Fixed #20841 -- Added messages to NotImplementedErrors Thanks joseph at vertstudios.com for the suggestion. --- django/forms/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/forms') diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 26f8d312e4..ea701bdcf9 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -190,7 +190,7 @@ class Widget(six.with_metaclass(MediaDefiningClass)): The 'value' given is not guaranteed to be valid input, so subclass implementations should program defensively. """ - raise NotImplementedError + raise NotImplementedError('subclasses of Widget must provide a render() method') def build_attrs(self, extra_attrs=None, **kwargs): "Helper function for building an attribute dictionary." -- cgit v1.3