PluginValidationMixin : fix full_clean method (#6461)

- Accept *args and **kwargs
This commit is contained in:
Oliver 2024-02-10 10:57:51 +11:00 committed by GitHub
parent 0ba16bbbbd
commit 9c93130224
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,12 +106,12 @@ class PluginValidationMixin(DiffMixin):
) )
raise ValidationError(_('Error running plugin validation')) raise ValidationError(_('Error running plugin validation'))
def full_clean(self): def full_clean(self, *args, **kwargs):
"""Run plugin validation on full model clean. """Run plugin validation on full model clean.
Note that plugin validation is performed *after* super.full_clean() Note that plugin validation is performed *after* super.full_clean()
""" """
super().full_clean() super().full_clean(*args, **kwargs)
self.run_plugin_validation() self.run_plugin_validation()
def save(self, *args, **kwargs): def save(self, *args, **kwargs):