1 2 3 4 5 6
from django import forms from blog.widgets import AdminImageWidget class FileUploadForm(forms.ModelForm): upload = forms.FileField(widget=AdminImageWidget)