Transmit name of missing attribute
This commit is contained in:
1 parent
02599d1066
commit
6be61ac243
1 file changed
+1
-1
@@ -110,7 +110,7 @@ class Model(WarningErrorMixin):
|
||||
if hasattr(model_obj, name) and \
|
||||
callable(getattr(model_obj, name)):
|
||||
return getattr(model_obj, name)
|
||||
raise AttributeError
|
||||
raise AttributeError(name)
|
||||
|
||||
def _inherits_reload(self):
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user