10 lines
239 B
Python
10 lines
239 B
Python
|
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']
|