mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
This commit is contained in:
committed by
Tim Graham
parent
d59f1993f1
commit
b2b763448f
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user