(data)
return field
Widget used to upload files.
Widget used to upload files.
Widget used to upload files .
def upload_field(data):
    """
    Widget used to upload files.
    """
    initial = str(data.get("value", ""))
    label = str(data.get("label", ""))
    help_text = str(data.get("help", ""))

    field = forms.FileField(initial=initial, label=label, help_text=help_text)

    return field
def upload_field ( data ) : initial = str ( data . get ( "value" , "" ) ) label = str ( data . get ( "label" , "" ) ) help_text = str ( data . get ( "help" , "" ) ) field = forms . FileField ( initial = initial , label = label , help_text = help_text ) return field