Skip to content

Commit

Permalink
Fix for the unexpected keyword argument 'extra_validators'
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Golfari committed Jul 5, 2023
1 parent 1a8fe02 commit 0626cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airscore/public/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, *args, **kwargs):
super(LoginForm, self).__init__(*args, **kwargs)
self.user = None

def validate(self):
def validate(self, extra_validators=None):
"""Validate the form."""
from Defines import ADMIN_DB
initial_validation = super(LoginForm, self).validate()
Expand Down
4 changes: 2 additions & 2 deletions airscore/user/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, *args, **kwargs):
super(RegisterForm, self).__init__(*args, **kwargs)
self.user = None

def validate(self):
def validate(self, extra_validators=None):
"""Validate the form."""
initial_validation = super(RegisterForm, self).validate()
if not initial_validation:
Expand Down Expand Up @@ -543,7 +543,7 @@ class UserForm(FlaskForm):

submit = SubmitField('Save')

def validate(self):
def validate(self, extra_validators=None):
"""Validate the form."""
initial_validation = super(UserForm, self).validate()
if not initial_validation:
Expand Down

0 comments on commit 0626cdb

Please sign in to comment.