From 0751cc876a48ef35f5a4389424d4a232131ba74e Mon Sep 17 00:00:00 2001 From: benjaoming Date: Fri, 1 Feb 2013 18:38:22 +0100 Subject: [PATCH] using wrong class for widget when in readonly mode on some settings form fields --- wiki/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/forms.py b/wiki/forms.py index a3fe1277..8805f16c 100644 --- a/wiki/forms.py +++ b/wiki/forms.py @@ -327,12 +327,12 @@ class PermissionsForm(PluginSettingsFormMixin, forms.ModelForm): self.fields['group'].queryset = models.Group.objects.filter(user=request.user) self.can_change_groups = True else: - self.fields['group'].widget = forms.CharField(attrs={'readonly': 'true'}) + self.fields['group'].widget = forms.TextInput(attrs={'readonly': 'true'}) self.fields['group_read'].widget = forms.HiddenInput() self.fields['group_write'].widget = forms.HiddenInput() if not self.can_assign: - self.fields['owner_username'].widget = forms.CharField(attrs={'readonly': 'true'}) + self.fields['owner_username'].widget = forms.TextInput(attrs={'readonly': 'true'}) self.fields['recursive'].widget = forms.HiddenInput() self.fields['recursive_group'].widget = forms.HiddenInput() self.fields['recursive_owner'].widget = forms.HiddenInput() -- 2.45.2