9 videoPath = forms.CharField(required=False) |
9 videoPath = forms.CharField(required=False) |
10 flatten = forms.BooleanField(required=False, initial=True) |
10 flatten = forms.BooleanField(required=False, initial=True) |
11 |
11 |
12 class LdtAddForm(forms.ModelForm): |
12 class LdtAddForm(forms.ModelForm): |
13 title = forms.CharField() |
13 title = forms.CharField() |
14 contents = forms.ModelMultipleChoiceField(Content.objects.all()) |
14 contents = forms.ModelMultipleChoiceField(Content.objects.all()) #@UndefinedVariable |
15 # owner = forms.ModelChoiceField(Author.objects.all()) |
15 # owner = forms.ModelChoiceField(Author.objects.all()) |
16 class Meta: |
16 class Meta: |
17 model = Project |
17 model = Project |
18 exclude = ("ldt_id", "ldt", "created_by", "changed_by", "creation_date", "modification_date", "state", "owner") |
18 exclude = ("ldt_id", "ldt", "created_by", "changed_by", "creation_date", "modification_date", "state", "owner") |
19 |
19 |
20 class ReindexForm(forms.Form): |
20 class ReindexForm(forms.Form): |
21 contents = forms.ModelMultipleChoiceField(Content.objects.all()) |
21 contents = forms.ModelMultipleChoiceField(Content.objects.all()) #@UndefinedVariable |
22 index_projects = forms.BooleanField(initial=False) |
22 index_projects = forms.BooleanField(required=False, initial=False) |
23 |
23 |
24 class SearchForm(forms.Form): |
24 class SearchForm(forms.Form): |
25 search = forms.CharField() |
25 search = forms.CharField() |
26 field = forms.ChoiceField([(u"all", u"all"), (u"title", u"title"), (u"abstract", u"resume"), (u"tags", u"tags")]) |
26 field = forms.ChoiceField([(u"all", u"all"), (u"title", u"title"), (u"abstract", u"resume"), (u"tags", u"tags")]) |
27 |
27 |