#16370: All ManyToMany field get a default message which is not overridable ----------------------+---------------------------------------------- Reporter: wildfire | Owner: nobody Type: Bug | Status: new Milestone: | Component: Database layer (models, ORM) Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 1 | Easy pickings: 1 UI/UX: 0 | ----------------------+---------------------------------------------- All ManyToManyFields get a default message in the help_text, which is not overridable.
The message is: 'Hold down "Control", or "Command" on a Mac, to select more than one.' This is done in the file django/db/models/fields/related.py and it makes sense if the related field is being displayed as a select list. However, if you display a many to many relation using the inbuilt CheckboxSelectMultiple widget - for example - the message actually makes no sense. It makes no sense because you will have multiple checkboxes which you can independently click on. In fact, have a textual string referencing the likely output method in the '''model''' seems to be a layering violation. Attached is a patch to put this text in only if there is no help_text provided. Since it will use the overridden help_text, people are free to add back in the initial text if required. -- Ticket URL: <https://code.djangoproject.com/ticket/16370> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.