2👍
✅
You can access to m2m relation fields via Model1()._meta.many_to_many
which will return all m2m relations, including GenericRelations
.
Source:stackexchange.com