Re: Django remove value from field with attrs disabled="disabled"

2009-09-06 Thread eli
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

Re: Django remove value from field with attrs disabled="disabled"

2009-09-06 Thread V
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

Re: Django remove value from field with attrs disabled="disabled"

2009-09-05 Thread Karen Tracey
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

Django remove value from field with attrs disabled="disabled"

2009-09-05 Thread eli
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