> Hi, > > ModelForm should automatically create a dropdown list for your foreign key. > If there is nor such drop-down created probably you are doing something wrong. >
I don't want the dropdown list I want the values of the foreinkey to be expaneded into fields For example I have user as ForeignKey to the contrib.auth.models.User model. This model has username as field. I want to display the username field of the user foreinkey. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.