Opened 8 years ago

Closed 8 years ago

#24593 closed Bug (fixed)

Thousand separator not showing in ModelAdmin.readonly_fields

Reported by: liwee Owned by: Eric
Component: contrib.admin Version: 1.7
Severity: Normal Keywords: Thousand separator readonly
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I added the following to my form. Thousand separator appears in a normal integer field but missing from a readonly field.

    class Meta:
        localized_fields = ('__all__')

Attachments (1)

1.PNG (1.0 KB) - added by liwee 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by liwee

Attachment: 1.PNG added

comment:1 Changed 8 years ago by Tim Graham

Component: Uncategorizedcontrib.admin
Summary: Thousand separator not showing in readonly fieldsThousand separator not showing in ModelAdmin.readonly_fields
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

I could reproduce this.

comment:2 Changed 8 years ago by Eric

Owner: changed from nobody to Eric
Status: newassigned

comment:3 Changed 8 years ago by Simon Charette <charette.s@…>

Resolution: fixed
Status: assignedclosed

In d72e017:

Fixed #24593 -- Fixed number formatting of readonly IntegerFields in the admin.

Note: See TracTickets for help on using tickets.
Back to Top