def post_through_setup(self, cls):
        self.use_gfk = (
            self.through is None or issubclass(self.through, GenericTaggedItemBase)
        )
        self.rel.to = self.through._meta.get_field("tag").rel.to
        if self.use_gfk:
            tagged_items = GenericRelation(self.through)
            tagged_items.contribute_to_class(cls, "tagged_items")
dataset/ETHPy150Open lmorchard/badg.us/vendor-local/lib/python/taggit/managers.py/TaggableManager.post_through_setup/original