On Tue, Jun 14, 2016 at 10:52 AM, Larry Martell <larry.mart...@gmail.com> wrote: > On Mon, Jun 13, 2016 at 4:12 PM, Larry Martell <larry.mart...@gmail.com> > wrote: >> I have extended the user model to another table I called UserInfo, and >> I added it to the add user admin page. >> >> So now when I go to add a user I see this on the page: >> >> User Info >> User Info: #1 >> >> If I edit a user that exists I see: >> >> User Info >> User Info: UserInfo object >> >> How can I remove that second line? >> >> Also, on the main user page how do I add fields from my UserInfo model >> to this of users? > > I figured out that if I add a __str__ method for my UserInfo model it > displays that instead of "UserInfo object" But when adding a new user > I still get "#1" - how can I suppress or change that? > > Still haven't found how to get the data from UserInfo on the page with > the list of users. Anyone know?
Also, how can I make the entry of fields from UserInfo required when adding or modifying a user? I tried setting null=False in the UserInfo model, but that seems to have no effect. -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY6Ybfid2wVbseMUVcbAa4%2BN92Jk0zhsifQ76PQaC%2Bn7Cw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.