from django import forms from .widgets import AdminImageWidget class FileUploadForm(forms.ModelForm): upload = forms.FileField(widget=AdminImageWidget)