Re: ModelForm changing default field for ForeingKey

2014-06-03 Thread Ymir Camilo Acosta Rodriguez
Thank you Daniel, it works for me. ;) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send emai

Re: ModelForm changing default field for ForeingKey

2011-01-22 Thread Daniel Roseman
On Friday, January 21, 2011 11:58:36 PM UTC, jonas wrote: > > Hello, > > I'm creating a subset of a ModelForm. > > class FavArtistForm(ModelForm): > class Meta: > model = FavArtist > fields = ('artist',) > widgets = { > 'artist': CharField(), > }

ModelForm changing default field for ForeingKey

2011-01-21 Thread Jonas Geiregat
Hello, I'm creating a subset of a ModelForm. class FavArtistForm(ModelForm): class Meta: model = FavArtist fields = ('artist',) widgets = { 'artist': CharField(), } The field artist is of the type ForeignKey which is by default repres