Nevermind; I got it: class Disco(ModelForm):
pickup_lines = forms.ModelMultipleChoiceField(required=True, queryset=WittyThings.objects.all(), \ widget=forms.SelectMultiple(attrs={'size': '10'}) ) class Meta: model = Dance -sg On Dec 15, 8:40 am, stuntgoat <[EMAIL PROTECTED]> wrote: > Can I change a ModelForms widget attrs? > > My model form: > > class Disco(ModelForm): > > class Meta: > > model = Dance > > I want to change the form widget of pickup_lines which is > > pickup_lines = models.ManyToManyField(WittyThings) > > in models.py > > I would like to edit this model form widget like: > > attrs={'size': '10'} > > any clues? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---