Opened 17 years ago
Closed 17 years ago
#10058 closed (invalid)
Changeset 9760 broke link to FileField values in admin
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | contrib.admin | Version: | 1.0 | 
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
Refactor of formfield_for_dbfield in changeset 9760 doesn't include using the AdminFileWidget for FileField and ImageField, and thus the handy file link is not present in the admin.  This patch should fix the issue -- I just re-added lines 109-111 from the previous version.
Attachments (1)
Change History (2)
by , 17 years ago
| Attachment: | 10058.diff added | 
|---|
comment:1 by , 17 years ago
| Resolution: | → invalid | 
|---|---|
| Status: | new → closed | 
Alex Gaynor pointed out that because I'm actually using a subclass of ImageField, I need to update formfield_overrides in my admin class.  So this ticket and patch aren't really a good representation of the issue.
Use AdminFileWidget in the admin for FileField and ImageField