You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently it was changed to return BleachField which inherently does not call super() where base Field correctly interprets other django model field attributes such as blank:
Describe the bug
When
blank=True
is set toTrue
, expectedfield.formfield()
should berequired=False
however that is not honored.To Reproduce
Steps to reproduce the behavior:
blank=True
Expected behavior
It should appear as not required but it appears as required
Context
Looks like its related to
django-bleach/django_bleach/models.py
Lines 37 to 47 in 0dfcd6d
Recently it was changed to return
BleachField
which inherently does not callsuper()
where baseField
correctly interprets other django model field attributes such asblank
:https://github.com/django/django/blob/56f9579105c324ff15250423bf9f8bdf1634cfb4/django/db/models/fields/__init__.py#L908-L914
(copy from link since it does not render inline)
The text was updated successfully, but these errors were encountered: