def get_permission_code(permission):
    """
    Get unique code for identify permission

    :param permission: Permission object
    :return: unique_code: unique code of Permission object
    """
    return '{app_label}.{codename}'.format(
        app_label=permission.content_type.app_label,
        # model=permission.content_type.model,
        codename=permission.codename,
    )