1👍
✅
Ok, I have found a problem – I changed the generics import – now I’m using from rest_framework_mongoengine import generics
. I assume the conflict was that it couldn’t find model
parameter of queryset
because it was not in default database from config.
1👍
You are doing this
serializer_class = BoxSerializer(partial=True)
this is invalid code, because you are instantiating serializer here, so serializer instance will be stored in serializer_class
variable not a class
Source:stackexchange.com