diff --git a/app/tailwind/forms.py b/app/tailwind/forms.py index 25e84300..465419e9 100644 --- a/app/tailwind/forms.py +++ b/app/tailwind/forms.py @@ -33,7 +33,7 @@ def __init__(self, *args, **kwargs): # Add readonly fields if visible.name in self.Meta.readonly_fields: - visible.field.widget.attrs["disabled"] = True + visible.field.widget.attrs["class"] += " input-disabled" visible.field.widget.attrs["readonly"] = True # Add placeholder to use focus animation label