def has_exact_m2m_match(match_list):
    """
    Get exact Obj m2m match 
    """
if isinstance(match_list, QuerySet):
    match_list = [x.id for x in match_list]
results = {}
match = set(match_list)
for obj, size in Obj.sizes.through.objects.filter(size__in=match).values_list(
    'obj', 'size'):
    pass
get_or_create модель django с полем ManyToMany