diff options
| author | Gregor MacGregor <Timothy.J.Clifford@gmail.com> | 2013-09-06 13:24:52 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-10 11:09:59 -0400 |
| commit | b2b763448f726ee952743596e9a34fcb154bdb12 (patch) | |
| tree | 5da48d220f856a2c8e42a0e1a19e909b7401ac59 /django/utils/functional.py | |
| parent | d59f1993f150f83524051d96b52df08da4dcf011 (diff) | |
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
Diffstat (limited to 'django/utils/functional.py')
| -rw-r--r-- | django/utils/functional.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py index bfd59e5340..65ec4b53c4 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -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) |
