[Answer]-How get related objects by field name?

1👍

This will do I guess:

element._meta.get_field('categories').value_from_object(element)

Leave a comment