docs: def set_relation_many_to_many(self, obj, field_name, objs):
          "Set a many-to-many field on an object"
          relation = getattr(obj, field_name)
          if hasattr(relation, 'set'):
              relation.set(objs) # Django 2.x
          else:
              setattr(obj, field_name, objs)