Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1835 closed defect (fixed)

[patch] FilePathField breaks admin model documentation

Reported by: Adam Endicott < > Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal 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

If a model has a FilePathField, navigating to the admin documentation for the model throws an exception (KeyError). The cause is a missing entry for FilePathField in the DATA_TYPE_MAPPING dict in django/contrib/admin/views/doc.py

The included patch adds the entry, which fixes the problem.

Attachments (1)

doc.diff (611 bytes ) - added by Adam Endicott 18 years ago.

Download all attachments as: .zip

Change History (2)

by Adam Endicott, 18 years ago

Attachment: doc.diff added

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in [2952].

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