Gitlab CSE Unil

forms.py 288 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 models import AnObj
from eav.forms import BaseDynamicEntityForm
from django.forms import ImageField

BaseDynamicEntityForm.FIELD_CLASSES.update({'image': ImageField})


class AnObjForm(BaseDynamicEntityForm):
    model = AnObj