Replace all direct calls to self.Meta.model outside of the getter, with the get_model() getter in serializers.py
Replace all direct calls to self.Meta.model outside of the getter, with the get_model() getter in serializers.py

umutbozkurt/django-rest-framework-mongoengine