#34155: ModelAdmin.render_change_form does not lowercase the app_label when setting template directories -------------------------------+-------------------------------------- Reporter: Rishi Diwan | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 3.2 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------------------------- Description changed by Rishi Diwan:
Old 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. New 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 Overwrite `template/django/admin/App/inventory/change_form.html` This works fine on Linux systems. However on OSX systems the file shows up as `template/django/admin/app/inventory/change_form.html`. This breaks the functionality since the template is no longer found in the `App/inventory` directory. The app_label variable should be lowercased so the differing file systems do not cause this issue. -- -- Ticket URL: <https://code.djangoproject.com/ticket/34155#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018474e563ec-45e68225-ea30-47d5-b387-14a984b3f2b2-000000%40eu-central-1.amazonses.com.