forms.py 151 B

123456789
  1. from django import forms
  2. from .models import File
  3. class UploadForm(forms.ModelForm):
  4. class Meta:
  5. model = File
  6. fields = ['file']