#3 Upload form for Images
This commit is contained in:
parent
5342e62bcb
commit
4deeb3d773
9
django_web_galleries/web_galleries/forms.py
Normal file
9
django_web_galleries/web_galleries/forms.py
Normal file
@ -0,0 +1,9 @@
|
||||
from django import forms
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
from .models import Image
|
||||
|
||||
class ImageUploadForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Image
|
||||
fields = ['description', 'image_file', 'private']
|
Loading…
Reference in New Issue
Block a user