Opened 2 years ago

Last modified 2 years ago

#34155 closed Uncategorized

ModelAdmin.render_change_form does not lowercase the app_label when setting template directories — at Initial Version

Reported by: Rishi Diwan Owned by: nobody
Component: contrib.admin Version: 3.2
Severity: Normal Keywords:
Cc: Carlton Gibson Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In case of differing environments, such as the linux FS and the OSX FS, folders case-matching is important.

Consider an application with:
app label = "App"
model name = "Inventory" with tablename="inventory"

If a particular model's change_form.html needs to be overwritten we would do the following
In Linux:
Overwrite template/django/admin/App/inventory/change_form.html
In OSX:
Overwrite template/django/admin/app/inventory/change_form.html

The app_label variable should be lowercased so the differing file systems do not cause this issue.

Change History (0)

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