Thanks Chintan, Tom, 'twas easy.....
Regards Damola ________________________________ From: Chintan Tank <tankchin...@gmail.com> To: django-users@googlegroups.com Sent: Monday, August 8, 2011 4:08:09 PM Subject: Re: problem with django admin I think you might want to define what text to display when you directly reference the model's instance. seeĀ https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#unicode In Java it is like overriding the toString() method. On Mon, Aug 8, 2011 at 10:35 AM, Oyedamola Oyeniyi <oyeniy...@yahoo.ca> wrote: Hi all, > >I have a strange problem with the admin pages and I don't evenknow >where to begin tolook at the FAQ. I'm a newbie to Django and Python(in >fact, web applications in general) so forgive the dumbness of the >question. > >I have just finished the models.py and admin.py files on an app I am >working with. Navigations and the like on the admin interface seems to >work fine. But I have issues with 3 tables: Operator,Address and >Operator_Address. As is obvious, I created the Operator_Address table >as a join table for the manytomany relationship between Operator, and >Address!. > >I am trying to populate the Operator_Address table with data I have >filled in Operator and Address tables respectively. I assumed that in >the dropbox for the Operator_Address interface, I was supposed to be >presented with string literals signifying the Operators and Addresses >I filled in their respective interfaces, instead I get "Operator >object" and "Address object" for as many objects I created. > >Am I missing something? > >Thanks > >-- >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. > > Thanks, Chintan -- 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.