forms.py 166 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 from django import forms from .models import File class UploadFileForm(forms.ModelForm): class Meta: model = File fields = ('userName', 'file')