From d2e0910c1bbf965113fc7290c8c1d0fb4c09490c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 25 Jun 2024 22:20:18 +0000 Subject: [PATCH] Bug fix (typo) - "upload_user" is name of new field --- inventree_wireviz/processing.py | 4 ++-- inventree_wireviz/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inventree_wireviz/processing.py b/inventree_wireviz/processing.py index d1632a4..a70dfa0 100644 --- a/inventree_wireviz/processing.py +++ b/inventree_wireviz/processing.py @@ -69,7 +69,7 @@ def create_attachment(self, part, attachment, comment, user): model_id=part.pk, attachment=attachment, comment=comment, - user=user + upload_user=user ) except Exception: pass @@ -88,7 +88,7 @@ def create_attachment(self, part, attachment, comment, user): pass # Attachment not created - return None + raise ValidationError("Error creating attachment file") def prepend_templates(self): """Prepend the contents of the wireviz template files to the wireviz file.""" diff --git a/inventree_wireviz/version.py b/inventree_wireviz/version.py index 00165fe..35e5aab 100644 --- a/inventree_wireviz/version.py +++ b/inventree_wireviz/version.py @@ -1,3 +1,3 @@ """Version information for the inventree-wireviz plugin""" -PLUGIN_VERSION = "0.6.0" +PLUGIN_VERSION = "0.6.1"