From 9c93130224b25c629633550c8853740ab70d6117 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 10 Feb 2024 10:57:51 +1100 Subject: [PATCH] PluginValidationMixin : fix full_clean method (#6461) - Accept *args and **kwargs --- InvenTree/InvenTree/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/InvenTree/models.py b/InvenTree/InvenTree/models.py index 7c51f2da9a..75c5d845d8 100644 --- a/InvenTree/InvenTree/models.py +++ b/InvenTree/InvenTree/models.py @@ -106,12 +106,12 @@ class PluginValidationMixin(DiffMixin): ) raise ValidationError(_('Error running plugin validation')) - def full_clean(self): + def full_clean(self, *args, **kwargs): """Run plugin validation on full model clean. Note that plugin validation is performed *after* super.full_clean() """ - super().full_clean() + super().full_clean(*args, **kwargs) self.run_plugin_validation() def save(self, *args, **kwargs):