from django import forms from .models import File class UploadForm(forms.ModelForm): class Meta: model = File fields = ['file']