Ejemplo n.º 1
0
def field_display(obj, field):
    """
        returns the representation (value or ``get_FIELD_display()``) of  a field

        see `adminactions.utils.get_field_value`_
    """
    return get_field_value(obj, field)
Ejemplo n.º 2
0
def field_display(obj, field):
    """
        returns the representation (value or ``get_FIELD_display()``) of  a field

        see `adminactions.utils.get_field_value`_
    """
    return get_field_value(obj, field)
Ejemplo n.º 3
0
def raw_value(obj, field):
    """
        returns the value  a field

        see `adminactions.utils.get_field_value`_
    """
    value = get_field_value(obj, field, False)
    return str(field.formfield().to_python(value))
Ejemplo n.º 4
0
def raw_value(obj, field):
    """
        returns the value  a field

        see `adminactions.utils.get_field_value`_
    """
    value = get_field_value(obj, field, False)
    return str(field.formfield().to_python(value))