mirror of
https://github.com/django/django.git
synced 2025-09-17 07:55:33 +00:00
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
This commit is contained in:
parent
d59f1993f1
commit
b2b763448f
26 changed files with 96 additions and 95 deletions
|
@ -257,7 +257,7 @@ class LazyObject(object):
|
|||
"""
|
||||
Must be implemented by subclasses to initialise the wrapped object.
|
||||
"""
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError('subclasses of LazyObject must provide a _setup() method')
|
||||
|
||||
# Introspection support
|
||||
__dir__ = new_method_proxy(dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue