diff --git a/InvenTree/InvenTree/views.py b/InvenTree/InvenTree/views.py index 91261827e7..09b686578a 100644 --- a/InvenTree/InvenTree/views.py +++ b/InvenTree/InvenTree/views.py @@ -282,7 +282,7 @@ class AjaxCreateView(AjaxMixin, CreateView): # Return the PK of the newly-created object data['pk'] = self.object.pk - data['text'] = str(object) + data['text'] = str(self.object) try: data['url'] = self.object.get_absolute_url()