Transmit name of missing attribute

This commit is contained in:
Nicolas Évrard committed 2011-03-28 13:36:45 +02:00
1 parent 02599d1066
commit 6be61ac243
1 file changed
+1 -1
+1 -1
View File
@@ -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):
"""