'Return the display value for a choice field'

def __get_field_display(self, field):

    value = getattr(self, field.name)
    if (field.choices and isinstance(field.choices[0], (list, tuple))):
        return dict(field.choices).get(value, value)
    return value
