Erik, Marvelous! I saw this in the tutorial but I missed the part where admin uses it as well.
Thanx and greetz! Gerard. Erik Allik wrote: > You could define the __unicode__ (or __str__) method for the Customer > class: > > class Customer(models.Model): > .... > > def __unicode__(self): > return '%s %s' % (self.first_name, self.last_name) > > > On 24.08.2008, at 15:22, Gerard Petersen wrote: > >> Hi All, >> >> With some relational models in place I use droplists in the admin >> interface to fill my fields. There's a 1-to-n relation between >> customer and project that the admin module respects with a droplist. >> >> The problem is that the droplist shows "customer object" for all >> entries instead of a name (or field from the customer model) >> >> This clarifies: http://www.gp-net.nl/userdl/screens/screen1.png >> >> Is there a directive to specify this? >> >> Thanx a lot. >> >> Gerard. >> >> -- >> urls = { 'fun': 'www.zonderbroodje.nl', 'tech': 'www.gp-net.nl' } >> >> >> > > > > -- urls = { 'fun': 'www.zonderbroodje.nl', 'tech': 'www.gp-net.nl' } --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---