Django

Code

Ticket #1835 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

[patch] FilePathField breaks admin model documentation

Reported by: Adam Endicott < > Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

doc.diff (0.6 kB) - added by Adam Endicott on 05/10/06 17:52:05.

Change History

05/10/06 17:52:05 changed by Adam Endicott

  • attachment doc.diff added.

05/21/06 22:32:35 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [2952].


Add/Change #1835 ([patch] FilePathField breaks admin model documentation)




Change Properties
Action