File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def prepare(self, obj):
66
66
67
67
for attr in attrs :
68
68
if not hasattr (current_object , attr ):
69
- raise SearchFieldError ("The model '%s' does not have a model_attr '%s'." % (repr (current_object ), attr ))
69
+ raise SearchFieldError ("The model '%s' does not have a model_attr '%s'." % (repr (obj ), attr ))
70
70
71
71
current_object = getattr (current_object , attr , None )
72
72
@@ -82,7 +82,7 @@ def prepare(self, obj):
82
82
# accesses will fail misreably.
83
83
break
84
84
else :
85
- raise SearchFieldError ("The model '%s' has an empty model_attr '%s' and doesn't allow a default or null value." % (repr (current_object ), attr ))
85
+ raise SearchFieldError ("The model '%s' has an empty model_attr '%s' and doesn't allow a default or null value." % (repr (obj ), attr ))
86
86
87
87
if callable (current_object ):
88
88
return current_object ()
You can’t perform that action at this time.
0 commit comments