Friday, April 18, 2014

Re: How to remove Group field from Email Form

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):
     exclude = ['Group']
     def get_emails()
     .....

But no luck, it did not work, the Group still displayed.

Serge


+380 636150445
skype: skhohlov


On Fri, Apr 18, 2014 at 4:21 PM, nobody <jupit...@gmail.com> wrote:
> 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 the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/01227cd2-4cd5-4e3a-b73e-95590f4a61d1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d25fae7f-4ada-4724-baa7-d0a66c35238c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment