Allow for displaying has_many in panels.

Proposed solution for #2659.