mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PluginValidationMixin : fix full_clean method (#6461)
- Accept *args and **kwargs
This commit is contained in:
parent
0ba16bbbbd
commit
9c93130224
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user