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
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
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
3 matches
Mail list logo