On Friday, 6 February 2015 20:30:02 UTC, larry....@gmail.com wrote:
>
> I have a 1.7 app, and in admin when I reference a foreign key field, 
> instead of showing the values in the drop down, it shows "`model name` 
> object":
>
>  

> How can I get it show the values from the IPGroups table? I'm sure I'm 
> doing something simple and stupid wrong, but I can't see it.
>
> Thanks!
>

You haven't defined a `__unicode__` method (or `__str__` on Python3) on the 
IPGroups model..
--
DR.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b7a9e67c-9d71-4a22-b144-315f7f38a992%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to