Re: ModelForm customizing

2009-05-11 Thread Karen Tracey
2009/5/11 Julián C. Pérez > > anyone?? > pleeease?? > :D > > On 10 mayo, 09:15, Julián C. Pérez wrote: > > anyone?? any help?? > > :) > > > Please stop doing this. Cluttering an already high-traffic list with daily "please help" notes isn't of any use to anyone. If someone had time to help, t

Re: ModelForm customizing

2009-05-11 Thread Julián C . Pérez
anyone?? pleeease?? :D On 10 mayo, 09:15, Julián C. Pérez wrote: > anyone?? any help?? > :) > > > hi all > > something like this had already been > > reported:http://code.djangoproject.com/ticket/6138 > > > i tried sean's solutions but nothing happens... > > stand by... > > ;) > > > On May 8, 7

Re: ModelForm customizing

2009-05-10 Thread Julián C . Pérez
anyone?? any help?? :) > hi all > something like this had already been > reported:http://code.djangoproject.com/ticket/6138 > > i tried sean's solutions but nothing happens... > stand by... > ;) > > On May 8, 7:25 pm, Julián C. Pérez wrote: > > > thank you,s ean > > i will try > > ahh one thing

Re: ModelForm customizing

2009-05-08 Thread Julián C . Pérez
hi all something like this had already been reported: http://code.djangoproject.com/ticket/6138 i tried sean's solutions but nothing happens... stand by... ;) On May 8, 7:25 pm, Julián C. Pérez wrote: > thank you,s ean > i will try > ahh one thing i'd like to comment... > when creating an Profi

Re: ModelForm customizing

2009-05-08 Thread Julián C . Pérez
thank you,s ean i will try ahh one thing i'd like to comment... when creating an ProfileForm object I even give it the class as an argument like this: ... profile, created = Profile.objects.get_or_create(user=request.user) myProfileForm = ProfileForm(request.POST, instance=profile, error_class=Div

Re: ModelForm customizing

2009-05-08 Thread Sean Brant
Try this, not tested but it might work. class ProfileForm(forms.ModelForm): def __init__(self, *args, **kwargs): self.error_class = DivErrorList super(ProfileForm, self).__init__(*args, **kwargs) class Meta: model = P exclude = ('date', 'user', 'public')

ModelForm customizing

2009-05-08 Thread Julián C . Pérez
hi everyone me again... i need some help i want to change the error_class in a modlefrom instance the class looks like this: # in a models.py file 1 .class ProfileForm(forms.ModelForm): 2. 3. error_class = DivErrorList 4. 5. class Meta: 6. model = P 7. exclude