Ok, I read that, but the problem persist.. I try to use as you told, but 
nothing show... and no errors appears..

Sorry about my first line.. I just stop here, simple problem, in more then 
1 day, and I don't find any solution, anything on internet to...

Cheers
Fellipe

Em quinta-feira, 22 de agosto de 2013 12h19min31s UTC-3, Tom Evans escreveu:
>
> On Thu, Aug 22, 2013 at 3:28 PM, Fellipe Henrique 
> <fell...@gmail.com<javascript:>> 
> wrote: 
> > Hi guys, 
> > 
> > I really about to give up from Django, 
>
> So should I bother giving you the advice you asked for, since you are 
> just going to give up on Django? 
>
> > because? I try to do something simple 
> > and I looking, looking around the internet and don't find anything about 
> > this... try this simple example: http://pastebin.com/epazpBcZ 
> > 
> > I just want to get "descricao" field, from "Brinq" model, using a 
> > inlineformSet. 
> > 
> > I can't do this.. I try:  {{ form.brinq__descricao }} , {{ 
> > form.brinq_id__descricao }}, {{ form.brinq.descricao }} and {{ 
> > form.brinq_id__descricao }} 
> > 
> > I think it`s simple thing to do.. but I don't found anything to do this 
> in 
> > internet.. 
> > 
> > Can any one help me in this simple question? 
> > 
> > Thanks. 
> > 
>
> First of all, a model form that is bound to an instance of a model has 
> an attribute called 'instance' that represents the instance it is 
> bound to. This is mentioned all over the ModelForms documentation, eg 
> here: 
>
>
> https://docs.djangoproject.com/en/1.5/topics/forms/modelforms/#overriding-the-clean-method
>  
>
> and here: 
>
>
> https://docs.djangoproject.com/en/1.5/topics/forms/modelforms/#the-save-method
>  
>
> Therefore, if you want to output things related to that instance, you 
> can use it in your template: 
>
> {{ form.instance.brinq.descricao }} 
>
>
> Cheers 
>
> Tom 
>

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to