Gitlab CSE Unil

forms.py 272 Bytes
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
5
6
7
8
9
10
11
12
# coding=utf-8
from __future__ import unicode_literals
from django import forms


class UploadImageFileForm(forms.Form):
    """
    This form is used to validate the image files submitted
    for upload
    """
    image_file  = forms.ImageField(allow_empty_file=False)