Ticket #16370: 0001-Allow-the-help_text-on-related-fields-to-be-overridd.patch

File 0001-Allow-the-help_text-on-related-fields-to-be-overridd.patch, 942 bytes (added by Anand Kumria, 13 years ago)
  • django/db/models/fields/related.py

    From 97a2b871885044d485082e8eb31e3aadef550a01 Mon Sep 17 00:00:00 2001
    From: Anand Kumria <akumria@acm.org>
    Date: Wed, 29 Jun 2011 12:49:47 +0100
    Subject: [PATCH]  Allow the help_text on related fields to be overridden.
    
    ---
     django/db/models/fields/related.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py
    index cedf308..0a03301 100644
    a b class ManyToManyField(RelatedField, Field):  
    10201020        Field.__init__(self, **kwargs)
    10211021
    10221022        msg = _('Hold down "Control", or "Command" on a Mac, to select more than one.')
    1023         self.help_text = string_concat(self.help_text, ' ', msg)
     1023        self.help_text = self.help_text or msg
    10241024
    10251025    def get_choices_default(self):
    10261026        return Field.get_choices(self, include_blank=False)
Back to Top