ojuso-map/apps/files/forms.py

15 lines
271 B
Python
Raw Normal View History

from django import forms
from .models import File, ImageFile
class FileForm(forms.ModelForm):
class Meta:
model = File
2018-05-01 02:23:36 +00:00
exclude = ['user',]
class ImageFileForm(forms.ModelForm):
class Meta:
model = ImageFile
exclude = ['user',]