[#3466] Désactive 3 sources plus valide
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / sitotheque / forms.py
1 # -*- encoding: utf-8 -*-
2 from auf.django.references.models import Discipline, Region
3 from django import forms
4 from sitotheque.models import *
5 from savoirs.lib.recherche import build_search_regexp
6
7 class SiteSearchForm(forms.ModelForm):
8
9 class Meta:
10 model = SiteSearch
11 fields = ['q', 'discipline', 'pays', 'region', 'site_auf']
12
13 class SiteSearchEditForm(SiteSearchForm):
14
15 class Meta(SiteSearchForm.Meta):
16 fields = ['nom', 'alerte_courriel'] + SiteSearchForm.Meta.fields