@classmethod
def get(cls, pk):
    """
        Select entry by its primary key. It must be define as
        __primary_key__ (string)
        """
    return cls._query(cls).filter(getattr(cls, cls.__primary_key__) == pk
        ).first()
