def _list_display(short_description=None, admin_order_field=None):
    """
    Set the short_description and admin_order_field attributes on the decorated
    function.
    """

    def decorator(f):
        if short_description:
            f.short_description = short_description
        if admin_order_field:
            f.admin_order_field = admin_order_field
        return f

    return decorator