Re: How to remove Group field from Email Form

2014-06-04 Thread Sergiy Khohlov
Could you please send your view.py form.py and template ... Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Apr 19, 2014 at 3:39 AM, nobody wrote: > Thanks Serge, please see following embedded comments. > > > On Friday, April 18, 2014 11:27:01 PM UTC+10,

Re: How to remove Group field from Email Form

2014-04-18 Thread nobody
Thanks Serge, please see following embedded comments. On Friday, April 18, 2014 11:27:01 PM UTC+10, Sergiy Khohlov wrote: > > add exlude= ['Group'] to the form.py > Many thanks, > > Hmm, I tried following at my forms.py: from andsome.forms import EmailForm class EmailForm(EmailForm):

Re: How to remove Group field from Email Form

2014-04-18 Thread Sergiy Khohlov
add exlude= ['Group'] to the form.py Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Apr 18, 2014 at 4:21 PM, nobody wrote: > Hi, > > In an email form template file, the following tag displays tree input > fields, Subject, Body and Group, but I only need

How to remove Group field from Email Form

2014-04-18 Thread nobody
Hi, In an email form template file, the following tag displays tree input fields, Subject, Body and Group, but I only need Subject and Body field, not the Group, how can I remove the Group field? {% form_as_div form %} Thank you. -- You received this message because you are subscribed to

Re: Remove a field from a form

2007-07-09 Thread ilDave
I read this on the documentation, but I'm usinge the 0.96 versione, non the development one, so I can't use it... But Nathan's method worls well :) On Jul 9, 1:04 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/9/07, ilDave <[EMAIL PROTECTED]> wrote: > > > > > Hi! > > I have to show

Re: Remove a field from a form

2007-07-09 Thread Russell Keith-Magee
On 7/9/07, ilDave <[EMAIL PROTECTED]> wrote: > > Hi! > I have to show two identical forms in a page, so I used form_for_model > and I created two form objects. ... > What am I missing? Try form_for_model(MyModel, fields=('field1','field2')). That will generate a form for MyModel that only

Re: Remove a field from a form

2007-07-09 Thread ilDave
I have to remove the field from the object class and not from the class instance... Thanks! On Jul 9, 12:52 pm, Nathan Ostgard <[EMAIL PROTECTED]> wrote: > Do this instead: > > PreventivoForm = form_for_model(Preventivo) > del PreventivoForm.base_fields['codice'] > f = PreventivoForm() > f2 =

Re: Remove a field from a form

2007-07-09 Thread Nathan Ostgard
Do this instead: PreventivoForm = form_for_model(Preventivo) del PreventivoForm.base_fields['codice'] f = PreventivoForm() f2 = PreventivoForm(auto_id='id_%s2') Nathan Ostgard On Jul 9, 2:33 am, ilDave <[EMAIL PROTECTED]> wrote: > Hi! > I have to show two identical forms in a page, so I

Remove a field from a form

2007-07-09 Thread ilDave
Hi! I have to show two identical forms in a page, so I used form_for_model and I created two form objects. I don't need to show a particular field, so i tried to remove it this way: def showtwoforms(request): PreventivoForm = form_for_model(Preventivo) #'Preventivo' is the model f =