fix(django3): 修复django3兼容问题

pull/5053/head
ibuler 2020-11-20 15:23:33 +08:00 committed by 老广
parent f2fd9f5990
commit bf3056abc4
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@ alphanumeric = RegexValidator(r'^[0-9a-zA-Z_@\-\.]*$', _('Special char not allow
class ProjectUniqueValidator(UniqueTogetherValidator):
def __call__(self, attrs):
def __call__(self, attrs, serializer):
try:
super().__call__(attrs)
super().__call__(attrs, serializer)
except ValidationError as e:
errors = {}
for field in self.fields: