Opened 18 years ago
Closed 18 years ago
#4447 closed (fixed)
[unicode] Admin crash when draw list of objects if field return None
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | other branch |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Subj. Testcase is below.
models.py: remote_addr = models.IPAddressField(blank=True, null=True,) class Admin: list_display = (..., 'remote_addr')
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | admin-list-with-none.diff added |
---|
comment:1 by , 18 years ago
Keywords: | unicode removed |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The fix is not really correct, because it's inconsistent handling for that one item when compared to everything else. But the bug report shows that what I wrote in the commit message for [5388] is wrong.
I'll have to think of a fix that works for both cases.