def get_keys(self, lst):
        """
        return a list of pk values from object list
        """
        pk_name = self.get_pk_name()
        return [getattr(item, pk_name) for item in lst]

        return a list of pk values from object list
        
flask_appbuilder/models/mongoengine/interface.py