It is a modeform:
form = modelform(instance=object)
instantiated after click on detail of brand for update this brand.
But, First I need only get and view raw data from form.. like title,
description etc..
then I need to view full form(but this is not problem, ofcourse).
View is generating this modelform from db. I hope this is enough.
Thank you so much.
On 3 říj, 11:29, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Oct 2, 9:33 pm, petarda <pejcel.p...@gmail.com> wrote:
>
> > Hello,
> > I have simple question. How Can I get raw data from form object in my
> > template?
> > I don't need html tags only data.
> > I am trying {{ form.myfield.data }} , but always get None..
>
> What sort of form is it? What data are you trying to get? How are you
> instantiating the form? Does it actually have data associated with it?
> What is your view like?
> --
> DR.
--
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-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment