def short_description(description, **kwargs):
    """
    This decorator adds the django short_description attribute to the
    given function.

    It also adds every keyword argument as extra attribute to the
    decorated function.

    :param description: the value for the short description attribute
    :type description: str or unicode

    :return: the decorator function
    :rtype: function
    """
    def _wrapper(func):
        """
        Internal wrapper function.

        It only adds some attributes to the function object.
        """
        func.short_description = description
        for key in kwargs:
            setattr(func, key, kwargs[key])
        return func
    return _wrapper