django-web-galleries/django_web_galleries/web_galleries/forms.py

10 lines
239 B
Python
Raw Permalink Normal View History

2022-12-18 09:23:06 +01:00
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']