On Sat, Jul 2, 2016, Sergei Maertens <[email protected]> wrote:
>I've talked with some other core developers at the sprint, and the proposed >flow is more in line with the initial proposal again: > >* The deprecation cycle would include a settings (let's call it >CAPFIRST_MODELFORM_LABEL), defaulting to False (the new behaviour). Users >who wish to keep the old behaviour for a while set this to True >* The capfirst calls (there are 2 relevant ones) are replaced by wrappers >that check the CAPFIRST_MODELFORM_LABEL setting. If it's set to True, the >real capfirst is applied to field.verbose_name, else the raw >field.verbose_name is returned. >* The Django admin css can be updated to include the CSS rule, so it looks >still the same. Drawback is that this breaks tests if people are actively >checking the labels/HTML for forms. The recommended approach here is to >provide the capitalized strings in verbose_name >* For the front-end, the example CSS can be documented, or the option to >capitalize the verbose_name. > >Note that the new behaviour would be the default in the setting. We've discussed this at the sprint; this seems like a pretty good approach to me. I'm not convinced by the label names, but that's a detail. >One other drawback I just thought of is that validation errors sometimes >include the verbose_name (I think). This can look weird if the >end-developer has specified a capitalized verbose_name, but that's also the >case already. The recommended approach here would be to do the capitalizing >in CSS. I think the main issue here is the possibility of weird-looking sentences coming out generally, but especially in languages that follow different rules from English. Daniele -- 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/20160703143638.1832271735%40mail.wservices.ch. For more options, visit https://groups.google.com/d/optout.
