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,
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):
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
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
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
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
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 =
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
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 =
9 matches
Mail list logo