You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
853 B

# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _
from theme.models import Theme
class AdminSearchForm(forms.Form):
search_name = forms.CharField(required=False, max_length=50)
class ThemeSearch(forms.Form):
event = forms.MultipleChoiceField(required=False,widget=forms.CheckboxSelectMultiple, choices=[(0, _(u'выставки')),
(1, _(u'конференции')),
(2, _(u'семинары')),
(3, _(u'вебинары'))])
theme = forms.ModelMultipleChoiceField(required=False, queryset=Theme.objects.all(),
widget=forms.CheckboxSelectMultiple)