Hi,
Are the form fields in the html source (view source) and then getting
hidden using CSS or removed using JavaScript?
What does this output? {% if form %}Yes, there's a form{% else %}No form{%
endif %}
Collin
On Friday, November 21, 2014 11:33:16 AM UTC-5, Some Developer wrote:
>
> On 21/11/14 15:31, Vijay Khemlani wrote:
> > If you manually call the form "as_p" method in the view (not the
> > template), does it print the form?
> >
>
> OK. Sorted that out.
>
> Running my program through the debugger shows that the form object
> exists and has the correct fields associated with it.
>
> I don't understand this. Everything I look at says that the form should
> display correctly and it just isn't. The form_class has been
> instantiated correctly, there are no errors or warnings when I run my
> code. The template gets the form object passed to it as a context
> object. The only thing that doesn't happen is the form being displayed.
>
> Very strange indeed.
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/a3f47557-0bb9-4406-8546-e8b262821bc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.