Няма описание

forms.py 218B

12345678
  1. from django import forms
  2. from .models import Report
  3. class ReportForm(forms.ModelForm):
  4. class Meta:
  5. model = Report
  6. fields = ['name', 'created_by', 'file'] # Include the fields you want in the form