On Sun, Feb 13, 2011 at 7:54 PM, Bobby Roberts <tchend...@gmail.com> wrote: > class Disposition (models.Model): > id = models.AutoField (primary_key=True) > name = models.CharField (max_length=50, blank=False, > db_index=True) > active = models.IntegerField(blank=False, > choices=active_choices) > order = models.IntegerField(blank=True, default=0) > class DispositionAdmin(admin.ModelAdmin): > list_display = ('name','active','order',) > search_fields = ['name'] > admin.site.register(Disposition,DispositionAdmin) > > > Can you see any reason that the Disposition select box in the Record > Model would be populated witth "Disposition object 1,2,3,4" rather > than Disposition.name? >
Your Disposition object has now __unicode__ method, which is how the admin determines how to display an object. See [1] Cheers Tom [1] http://docs.djangoproject.com/en/1.2/topics/db/models/ -- 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.