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