from django.urls import reverse except ImportError: # For Django 1.8 compatibility from django.core.urlresolvers import reverse from django.template import Template from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ from forms_builder.forms import fields from forms_builder.forms.models import FormEntry, FieldEntry from forms_builder.forms import settings from forms_builder.forms.utils import now, split_choices, slugify fs = default_storage if settings.UPLOAD_ROOT is not None: fs = default_storage.__class__(location=settings.UPLOAD_ROOT) ############################## # Each type of export filter # ############################## # Text matches FILTER_CHOICE_CONTAINS = "1" FILTER_CHOICE_DOESNT_CONTAIN = "2" # Exact matches FILTER_CHOICE_EQUALS = "3" FILTER_CHOICE_DOESNT_EQUAL = "4" # Greater/less than FILTER_CHOICE_BETWEEN = "5"
from django.forms.extras import SelectDateWidget from django.core.files.storage import default_storage from django.core.urlresolvers import reverse from django.template import Template from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ from forms_builder.forms import fields from forms_builder.forms.models import FormEntry, FieldEntry from forms_builder.forms import settings from forms_builder.forms.utils import now, split_choices fs = default_storage if settings.UPLOAD_ROOT is not None: fs = default_storage.__class__(location=settings.UPLOAD_ROOT) ############################## # Each type of export filter # ############################## # Text matches FILTER_CHOICE_CONTAINS = "1" FILTER_CHOICE_DOESNT_CONTAIN = "2" # Exact matches FILTER_CHOICE_EQUALS = "3" FILTER_CHOICE_DOESNT_EQUAL = "4" # Greater/less than