2013/2/11 Carlos Andre :
> Olá pessoal!
> Olha, preciso que um foreign key seja acessível com o forms!
> Tentei de algumas maneiras e não consegui! materiais também não tão
> sucintos!
> alguém pode me ajudar com essa questão?
> Obrigado pela a atenção!
>
The foreign key is by default acessible in the forms in the form of
drop down. You just need to define the form of your model and the in
template file write this :
{% csrf_token %}
{{ form.as_table }}
--
Sandeep Kaur
E-Mail: mkaurkha...@gmail.com
Blog: sandymadaan.wordpress.com
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.