code: def get_locals(cls, session, **kwargs):
          
          return cls.find(session,
                          where=(cls.local == True,),
                          order_by=cls.login,
                          **kwargs)
docs: Get all local users.
  
          :param session: SQLAlchemy session
          :type session: :class:`sqlalchemy.Session`
  
          :return: local users
          :rtype: generator of :class:`pyshop.models.User`