X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0a2221a9af54f60f93f0d9799a4b87a5774667d8..54d2f3a9f5501bfca8ab48544123f2851c6c4085:/apps/catalogue/forms.py?ds=sidebyside diff --git a/apps/catalogue/forms.py b/apps/catalogue/forms.py index f59b356c..26d14aa4 100644 --- a/apps/catalogue/forms.py +++ b/apps/catalogue/forms.py @@ -144,7 +144,7 @@ class ReadonlyBookForm(BookForm): def __init__(self, *args, **kwargs): ret = super(ReadonlyBookForm, self).__init__(*args, **kwargs) for field in self.fields.values(): - field.widget.attrs.update({"readonly": True}) + field.widget.attrs.update({"disabled": "disabled"}) return ret @@ -179,5 +179,5 @@ class ReadonlyImageForm(ImageForm): def __init__(self, *args, **kwargs): ret = super(ReadonlyImageForm, self).__init__(*args, **kwargs) for field in self.fields.values(): - field.widget.attrs.update({"readonly": True}) + field.widget.attrs.update({"disabled": "disabled"}) return ret