Project

General

Profile

0001-admin-do-not-store-a-lazy-string-in-Field.label-5699.patch

Benjamin Dauvergne, 24 Sep 2021 08:35 PM

Download (844 Bytes)

View differences:

Subject: [PATCH] admin: do not store a lazy string in Field.label (#56997)

 wcs/admin/fields.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/admin/fields.py
46 46
        except IndexError:
47 47
            raise errors.TraversalError()
48 48
        if not self.field.label:
49
            self.field.label = _('None')
49
            self.field.label = str(_('None'))
50 50
        label = misc.ellipsize(self.field.unhtmled_label, 40)
51 51
        get_response().breadcrumb.append((field_id + '/', label))
52 52

  
53
-