def get_object(self, request, object_id, from_field=None):
        queryset = self.get_queryset(request)
        model = queryset._document
        field = model._meta.pk if from_field is None else model._meta.get_field(from_field)
        try:
            object_id = field.to_python(object_id)
            return queryset.get(**{field.name: object_id})
        except (model.DoesNotExist, ValidationError, ValueError):
            return None
Returns an instance matching the primary key provided. ``None``  is
dataset/ETHPy150Open jschrewe/django-mongoadmin/mongoadmin/options.py/DocumentAdmin.get_object