diff --git a/README.md b/README.md index 5ae5623..b49baa8 100644 --- a/README.md +++ b/README.md @@ -609,8 +609,8 @@ ordering on top of that just seemed a little much in my opinion. ### Status django-admin-sortable is currently used in production. -### What's new in 2.2.2? -- Fixed FontAwesome icons not showing up in inline sortable templates. +### What's new in 2.2.3? +- Updated inline sortable templates to fix FontAwesome icon visibility and be compatible with Django 2 & 3. ### Future - Better template support for foreign keys that are self referential. If someone would like to take on rendering recursive sortables, that would be super. diff --git a/README.rst b/README.rst index dd1f326..8b66053 100644 --- a/README.rst +++ b/README.rst @@ -751,10 +751,10 @@ Status django-admin-sortable is currently used in production. -What’s new in 2.2.2? +What’s new in 2.2.3? ~~~~~~~~~~~~~~~~~~~~ -- Fixed FontAwesome icons not showing up in inline sortable templates. +- Updated inline sortable templates to fix FontAwesome icon visibility and be compatible with Django 2 & 3. Future ~~~~~~ diff --git a/adminsortable/__init__.py b/adminsortable/__init__.py index a642a1d..e7c887a 100644 --- a/adminsortable/__init__.py +++ b/adminsortable/__init__.py @@ -1,4 +1,4 @@ -VERSION = (2, 2, 2) +VERSION = (2, 2, 3) DEV_N = None diff --git a/adminsortable/admin.py b/adminsortable/admin.py index a21e2ff..a3c3362 100644 --- a/adminsortable/admin.py +++ b/adminsortable/admin.py @@ -358,7 +358,7 @@ class SortableInlineBase(SortableAdminBase, InlineModelAdmin): class SortableTabularInline(TabularInline, SortableInlineBase): """Custom template that enables sorting for tabular inlines""" - if VERSION < (2, 0): + if VERSION >= (2, 0): template = 'adminsortable/edit_inline/tabular-1.10.x.html' else: template = 'adminsortable/edit_inline/tabular.html' @@ -366,7 +366,7 @@ class SortableTabularInline(TabularInline, SortableInlineBase): class SortableStackedInline(StackedInline, SortableInlineBase): """Custom template that enables sorting for stacked inlines""" - if VERSION < (2, 0): + if VERSION >= (2, 0): template = 'adminsortable/edit_inline/stacked-1.10.x.html' else: template = 'adminsortable/edit_inline/stacked.html' @@ -374,7 +374,7 @@ class SortableStackedInline(StackedInline, SortableInlineBase): class SortableGenericTabularInline(GenericTabularInline, SortableInlineBase): """Custom template that enables sorting for tabular inlines""" - if VERSION < (2, 0): + if VERSION >= (2, 0): template = 'adminsortable/edit_inline/tabular-1.10.x.html' else: template = 'adminsortable/edit_inline/tabular.html' @@ -382,7 +382,7 @@ class SortableGenericTabularInline(GenericTabularInline, SortableInlineBase): class SortableGenericStackedInline(GenericStackedInline, SortableInlineBase): """Custom template that enables sorting for stacked inlines""" - if VERSION < (2, 0): + if VERSION >= (2, 0): template = 'adminsortable/edit_inline/stacked-1.10.x.html' else: template = 'adminsortable/edit_inline/stacked.html' diff --git a/adminsortable/templates/adminsortable/edit_inline/stacked-1.10.x.html b/adminsortable/templates/adminsortable/edit_inline/stacked-1.10.x.html index 735e070..00b3561 100644 --- a/adminsortable/templates/adminsortable/edit_inline/stacked-1.10.x.html +++ b/adminsortable/templates/adminsortable/edit_inline/stacked-1.10.x.html @@ -9,7 +9,13 @@ {{ inline_admin_formset.formset.non_form_errors }} {% for inline_admin_form in inline_admin_formset %}