huskar_api/models/cache/__init__.py
def pk_attribute(cls):
        """Get object primary key attribute.

        :return: sqlalchemy ``Column`` object of the primary key
        """
        if cls.__mapper__.primary_key:
            return getattr(cls, cls.__mapper__.primary_key[0].name)
Get object primary key attribute.

        :return: sqlalchemy ``Column`` object of the primary key
        
Get object primary key attribute.
Get object primary key attribute .
def pk_attribute(cls):
        if cls.__mapper__.primary_key:
            return getattr(cls, cls.__mapper__.primary_key[0].name)
def pk_attribute ( cls ) : if cls . __mapper__ . primary_key : return getattr ( cls , cls . __mapper__ . primary_key [ 0 ] . name )
Get object primary key attribute.
Get object primary key attribute .
"""Get object primary key attribute.

        :return: sqlalchemy ``Column`` object of the primary key
        """
sqlalchemy ``Column`` object of the primary key
sqlalchemy ` ` Column ` ` object of the primary key
cls