You can use the optional attrs parameter when defining the Field. To wit: somefield = forms.CharField( widget=forms.TextInput(attrs={'readonly':'readonly'}) ) ...
確定! 回上一頁