Source code for jmb.core.admin.forms

# coding: utf-8
from __future__ import unicode_literals

from django import forms
from django.forms.utils import ErrorList
from django.utils.translation import ugettext_lazy as _


[docs]class ImportDataForm(forms.Form): """ Default import form, it provide only upload widget. Extend this for implement a custom form. """ file_to_import = forms.FileField( required=True, label=_('Select a file'), )
class ExportDataForm(forms.Form): required_css_class = 'required'