From d8df8bab55beb201a6130154bf71d0458e38b002 Mon Sep 17 00:00:00 2001 From: Brandon Taylor Date: Mon, 19 Mar 2018 20:54:23 -0400 Subject: [PATCH] Updated documentation around extending custom templates. --- README.md | 8 ++++---- README.rst | 12 +++++------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 60f22f3..511f850 100644 --- a/README.md +++ b/README.md @@ -413,12 +413,12 @@ change_form_template_extends = 'admin/change_form.html' change_list_template_extends = 'admin/change_list.html' ``` -If you need to extend the inline change form templates, you'll need to select the right one, depending on your version of Django. For Django 1.5.x or below, you'll need to extend one of the following: +If you need to extend the inline change form templates, you'll need to select the right one, depending on your version of Django. For 1.10.x or below, you'll need to extend one of the following: - templates/adminsortable/edit_inline/stacked-1.5.x.html - templates/adminsortable/edit_inline/tabular-inline-1.5.x.html + templates/adminsortable/edit_inline/stacked-1.10.x.html + templates/adminsortable/edit_inline/tabular-inline-1.10.x.html -For Django 1.6.x, extend: +otherwise, extend: templates/adminsortable/edit_inline/stacked.html templates/adminsortable/edit_inline/tabular.html diff --git a/README.rst b/README.rst index c48ee31..fa7506e 100644 --- a/README.rst +++ b/README.rst @@ -51,7 +51,7 @@ Download django-admin-sortable from `source `__ 1. Unzip the directory and cd into the uncompressed project directory -2. +2. - Optional: Enable your virtualenv @@ -518,16 +518,14 @@ These attributes have default values of: change_form_template_extends = 'admin/change_form.html' change_list_template_extends = 'admin/change_list.html' -If you need to extend the inline change form templates, you’ll need to -select the right one, depending on your version of Django. For Django -1.5.x or below, you’ll need to extend one of the following: +If you need to extend the inline change form templates, you'll need to select the right one, depending on your version of Django. For 1.10.x or below, you'll need to extend one of the following: :: - templates/adminsortable/edit_inline/stacked-1.5.x.html - templates/adminsortable/edit_inline/tabular-inline-1.5.x.html + templates/adminsortable/edit_inline/stacked-1.10.x.html + templates/adminsortable/edit_inline/tabular-inline-1.10.x.html -For Django 1.6.x, extend: +otherwise, extend: ::