I'm not sure you need to output a static value that user can't modify in a form field, but if you still need it...
some_field = forms.CharField(widget=forms.TextInput(attrs={'readonly': True})) or if you need hidden value some_field = forms.CharField(widget=forms.HiddenInput) On Fri, May 6, 2011 at 7:19 AM, GKR <ranagou...@gmail.com> wrote: > what is the alternative to disable any form field > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.