When I tried to relate an attribute with another one which has an M to M relation I received this error:
get() returned more than one
I had same problem and solution was obj = ClassName.objects.filter()
obj = ClassName.objects.filter()