Example models Author
and Book
are linked via M2M. I've found a way to cache the relationship in items
, but that doesn't really help because I need to display some info about Author
in the Book
feed:
def item_title(self, item): return f"{item.author_set.first().name} released {item.title}"
Any way to somehow cache the M2M relationship here?