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