Skip to content

Commit

Permalink
fix changed signature of custom validator (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov authored Sep 20, 2024
1 parent a7de9e8 commit 7566f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validity/custom_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DataSourceValidator(CustomValidator):
This validator prevents creation of more than one Data Source with "default" mark set to True
"""

def validate(self, instance):
def validate(self, instance, request=None):
DataSource = type(instance)
if DataSource.__name__ != "DataSource":
return
Expand Down

0 comments on commit 7566f1b

Please sign in to comment.