Add required param renderer to ReadOnlyPasswordHashWidget

This commit is contained in:
Santiago L 2021-05-13 14:42:05 +02:00
parent 8dc792b851
commit 13b4ac5eee

View file

@ -91,7 +91,7 @@ class DatabaseCreationForm(DatabaseUserCreationForm):
class ReadOnlySQLPasswordHashField(ReadOnlyPasswordHashField):
class ReadOnlyPasswordHashWidget(forms.Widget):
def render(self, name, value, attrs):
def render(self, name, value, attrs, renderer=None):
original = ReadOnlyPasswordHashField.widget().render(name, value, attrs)
if 'Invalid' not in original:
return original