Bifurcation depuis
La Quadrature du Net / Political Memory / memopol
948 validations de retard le dépôt en amont.
-
Jamesie Pic a rédigéJamesie Pic a rédigé
forms.py 371 o
from dal import autocomplete
from django import forms
from models import Recommendation
class RecommendationForm(forms.ModelForm):
class Meta:
model = Recommendation
fields = '__all__'
widgets = {
'proposal': autocomplete.ModelSelect2(
url='representatives_votes:proposal-autocomplete',
)
}