[Django]-Override admin fieldset for model in app

3👍

Yes, the behavior is correct because not every template is getting override using this method per app or model, please read this.

allowed templates are :

  1. app_index.html
  2. change_form.html
  3. change_list.html
  4. delete_confirmation.html
  5. object_history.html
  6. popup_response.html

So what I had done is override all these per app and model or added in admin.py class change_form_template = 'admin/appname/customtemplate.html' this will give you full control over templates. You can / need also to change all inner templates using inner includes.

Leave a comment