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 = ('date', 'user', 'public')

obviosly, the 3rd line doesn't do anything
i know that ProfileForm inherits from ModelFrom, which is a instance
of BaseModelForm (the class that has the 'error_class' attribute)
how can i change that attribute within my instance of ModelForm??
if i have to override the __init__... how can i do that to make all
things work??
thanks!

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to