Re: Using Django docs to find widget readonly specification

2013-04-01 Thread Daniel Roseman
On Sunday, 31 March 2013 22:42:12 UTC+1, AJP wrote: > I'm new to learning Django. I want to find the documentation regarding > the readonly attribute you can set for admin widgets. For example, from an > admin.py: > > class SourceForm(forms.ModelForm): > data = forms.CharField(widget=TextInp

Re: Using Django docs to find widget readonly specification

2013-03-31 Thread Alexis Roda
Al 31/03/13 23:42, En/na AJP ha escrit: I'm new to learning Django. I want to find the documentation regarding the readonly attribute you can set for admin widgets. Do you mean? https://docs.djangoproject.com/en/1.5/ref/contrib/admin/#django.contrib.admin.ModelAdmin.readonly_fields It's link

Using Django docs to find widget readonly specification

2013-03-31 Thread AJP
I'm new to learning Django. I want to find the documentation regarding the readonly attribute you can set for admin widgets. For example, from an admin.py: class SourceForm(forms.ModelForm): data = forms.CharField(widget=TextInput(attrs={'readonly': True, 'class': 'averageField'})) class