Right now, if min or max validation doesn't pass on a fieldset, we provide 
something 
like the following error 
<https://github.com/django/django/blob/master/django/forms/formsets.py#L340-L354>
:

Please submit 1 or more forms.


I'd like to propose that we provide a way to generate a slightly more 
specific error. For example:

Please submit 1 or more authors.


I'm eager to write the code to do this. There are a number of ways to 
implement it so I figured it would need discussion first and a ticket 
before I could issue a pull request. If people think this is a good idea, 
I'll document a few potential approaches for discussion.

A few options that come to mind before diving in.

   - Adding a `verbose_name_plural` property to the formset
   - Pulling the `verbose_name_plural` from the form class (if forms are 
   model forms)

Thanks,
-Ben

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c4e1f78a-32ab-4a35-b4d2-4c0aa7af47e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to