Thanks for help.
regards.
--~--~-~--~~~---~--~~
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
instead of using disabled field, I wrote a "StaticField"
it's value is supplied in the general clean method, for details see
http://www.djangosnippets.org/snippets/1523/
I hope this might help.
On Sep 5, 7:52 pm, eli wrote:
> Hi,
>
> I have problem with Django Forms and field with set attrs to
On Sat, Sep 5, 2009 at 1:52 PM, eli wrote:
>
> Hi,
>
> I have problem with Django Forms and field with set attrs to
> disabled="disabled"
>
> [snip]
> And now, Django remove values form field with attrs 'disabled':
> 'disabled' ("readonly" without "disabled" works fine, but I need
> disabled opti
Hi,
I have problem with Django Forms and field with set attrs to
disabled="disabled"
# forms.py
class EditForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(EditForm, self).__init__(*args, **kwargs)
self.fields['title'].widget.attrs.update({'readonly':
'reado
4 matches
Mail list logo