Are you trying to interface django with an existing table? Why do you have the StandardCode class foreign key-ing to the table, instead of just making a model that references the table exactly?
On Apr 26, 2:43 pm, Jesse <adles...@gmail.com> wrote: > Table LOINCCode has loinc_obr4 (a number) and a description field > (describing the number). > > Model Statement: > Class StandardCode(models.Model): > loinc_obr4 = models.ForeignKey(LOINCCode, null=True, default=1, > related_name='loinccodeobr4') > > In the Admin: > fieldsets =[ > (None, {'fields': [('loinc_obr4')]}) > ] > > The admin template shows the loinc_obr4 field, but I need the > description to also appear with the loinc_obr4. How do I expand the > foreign key in the admin to add more attributes in the drop down? > ACCESS has this capability when creating a combo box. > > Thx, > > Jesse > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://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-us...@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.