Re: ModelForm using Model error_messages

2013-03-11 Thread Loic Bistuer
This is more or less the idea behind https://code.djangoproject.com/ticket/2 except that the custom error_messages would be defined in ModelForm rather than Model. In my opinion, Model is a terrible place to define user-facing strings such as help_text or error_messages, at best useful to s

ModelForm using Model error_messages

2013-03-11 Thread Nicolas Diaz Aragon
Django docs state that a ModelForm will automatically set some field attributes for auto generated form fields. Those attributes are limited to : 'required', 'verbose_name', 'help_text', and 'choices' (according to https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#django.forms.Model