def pks_from_objects(self, objects):
        """
        Extract all the primary key strings from the given objects.
        Objects may be Versionables, or bare primary keys.

        :rtype : set
        """
        return {o.pk if isinstance(o, Model) else o for o in objects}