Re: forms/widgets media: position of 'class' directive

2009-01-12 Thread Artem Skvira
You are right - I have just omited "," in js = ('prototype.js', ) Thanks! On Jan 12, 2:04 am, "Ramiro Morales" wrote: > On Sun, Jan 11, 2009 at 10:33 AM, Artem Skvira wrote: > > > Hi all, > > > I've stumbled upon strange behaviour in django: when

Re: forms/widgets media: position of 'class' directive

2009-01-11 Thread Ramiro Morales
On Sun, Jan 11, 2009 at 10:33 AM, Artem Skvira wrote: > > Hi all, > > I've stumbled upon strange behaviour in django: when declaring form/ > widget with class Media, ie.: > > class AddressForm(ModelForm): >streetNo = forms.CharField() >... > >class Meta: >

forms/widgets media: position of 'class' directive

2009-01-11 Thread Artem Skvira
Hi all, I've stumbled upon strange behaviour in django: when declaring form/ widget with class Media, ie.: class AddressForm(ModelForm): streetNo = forms.CharField() ... class Meta: ... class Media: js = ('prototype.js', ) I get tons of javascript inclusions