Opened 17 years ago
Closed 17 years ago
#5032 closed (duplicate)
newforms-admin: missing labels in admin for all translated fields (seen on user change form)
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Keywords: | labels, admin, i18n, user | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
You could see this bug on user-editing page: field labels are missing
Problem is here (django/contrib/admin/options.py, lines 87-96):
def label_tag(self): classes = [] if self.is_checkbox: classes.append(u'vCheckboxLabel') contents = escape(self.field.label) else: contents = escape(self.field.label) + u':' # escape is lazy __proxy__ so + operation fails
Minimal patch looks like this:
else: - contents = escape(self.field.label) + u':' + contents = u"%s" % escape(self.field.label) + u':'
Change History (2)
comment:1 by , 17 years ago
Component: | Uncategorized → Admin interface |
---|---|
Owner: | changed from | to
comment:2 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Dupe of http://code.djangoproject.com/ticket/4958