Skip to content

Commit

Permalink
docs: changeform templates settings (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Jan 4, 2025
1 parent 16b3dfb commit 8f02f37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/configuration/modeladmin.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ class CustomAdminClass(ModelAdmin):
actions_detail = [] # Displayed at the top of for in object detail
actions_submit_line = [] # Displayed near save in object detail

# Changeform templates
# Changeform templates (located inside the form)
change_form_before_template = "some/template.html"
change_form_after_template = "some/template.html"

# Located outside of the form
change_form_outer_before_template = "some/template.html"
change_form_outer_after_template = "some/template.html"

formfield_overrides = {
models.TextField: {
Expand Down

0 comments on commit 8f02f37

Please sign in to comment.