So you want to edit the User object through the ModelForm of the other model, or you just want to display it?
-- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Tue, Sep 20, 2011 at 4:37 PM, Jonas Geiregat <jo...@geiregat.org> wrote: > > > 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. > > -- 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.