Q: django populate a ModelMultipleChoiceField with date__year I would like to populate a ModelMultipleChoiceField with only the year, but i can't seem to find the right way of doing it!
For right now here is what i've got!
class DataForm(forms.Form):
    years = Servizi.objects.all().dates('data','year')
    year = forms.ModelMultipleChoiceField(queryset=years)

If i can explain better i would like it to be:
_______
2010
_______
2011 etc...

instead of 
_______
2010-01-01
_________
2011-01-01 etc..

Is there an easy way??

A: So, I know its a bit hardcoded, but for right now its the only way i can find to populate the form!
class DataForm(forms.Form):

      years = Servizi.objects.all().dates('data','year')

      asd = []
      for year in years:
          asd.append((year.year,year.year))


      year = forms.ChoiceField(choices=asd)

Hope somebody will find it helpfull!
