2013/2/11 Carlos Andre <eucan...@gmail.com>: > 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 :
<form action="" method="post"> {% csrf_token %} <table> {{ form.as_table }} </table> <input type="submit" value="Submit"> </form> -- 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.