Skip to content

Commit

Permalink
chore: restore original formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoni Martyniuk committed Jul 8, 2023
1 parent f26a15a commit 23bd98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def formfield(self, **kwargs):
field = super().formfield(**defaults)

# replace any MaxLengthValidators with RichTextMaxLengthValidators to ignore tags
for i, validator in enumerate(field.validators):
for (i, validator) in enumerate(field.validators):
if isinstance(validator, MaxLengthValidator):
field.validators[i] = RichTextMaxLengthValidator(
validator.limit_value, message=validator.message
Expand Down

0 comments on commit 23bd98b

Please sign in to comment.