Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’m trying to have one model’s admin page show field values from an associated model. Just a column that converts the id to the correct name from the associated table. Using the events-calendar-example as a reference did not make it obvious how to do this “simple” task. I didn’t find any direct means to reference the associated table’s fields in the default_fields list. Instead, I had to create an access function referenced via value_method that just dereferences the object to pull out the correct name field from the associated table’s object reference.

    It would be great if there were a direct way to refer to the associated table’s fields in the default list. Maybe something like ‘Venue.name’ or ‘venues.name’.

Viewing 1 replies (of 1 total)