From 8ced087028770772d40853a6dca3396c39b3c1e4 Mon Sep 17 00:00:00 2001 From: abidibo Date: Mon, 14 Dec 2020 15:43:37 +0100 Subject: [PATCH 1/2] adds order as editable field --- lineup/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lineup/admin.py b/lineup/admin.py index ad89dc4..8ad0bdb 100644 --- a/lineup/admin.py +++ b/lineup/admin.py @@ -28,6 +28,7 @@ class MenuItemInline(admin.StackedInline): class MenuItemAdmin(MPTTModelAdmin): list_display = ('slug', 'label', 'parent', 'link', 'order', 'login_required', 'enabled', ) list_filter = (('parent', RelatedDropdownFilter, ) if baton else 'parent', 'enabled', 'login_required', ) + list_editable = ('order', ) search_fields = ('label', ) filter_horizontal = ('permissions', ) inlines = [MenuItemInline, ] From 756660fbd82ef9cf7c85a497ee1c3a88dc875697 Mon Sep 17 00:00:00 2001 From: abidibo Date: Mon, 14 Dec 2020 15:44:56 +0100 Subject: [PATCH 2/2] bumps version number to 0.2.1 --- HISTORY.rst | 7 +++++++ docs/conf.py | 4 ++-- lineup/__init__.py | 2 +- setup.cfg | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 49ffd64..5e77940 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,13 @@ History ------- +0.2.1 (2020-12-14) +++++++++++++++++++ + +* Adds order field as editable in change list page + +* First stable release + 0.2.0 (2020-12-14) ++++++++++++++++++ diff --git a/docs/conf.py b/docs/conf.py index 07ea1d8..0d5d686 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -54,9 +54,9 @@ # built documents. # # The short X.Y version. -version = u'0.2.0' +version = u'0.2.1' # The full version, including alpha/beta/rc tags. -release = u'0.2.0' +release = u'0.2.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/lineup/__init__.py b/lineup/__init__.py index 7fd229a..fc79d63 100644 --- a/lineup/__init__.py +++ b/lineup/__init__.py @@ -1 +1 @@ -__version__ = '0.2.0' +__version__ = '0.2.1' diff --git a/setup.cfg b/setup.cfg index 5ab4959..9b5484e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.0 +current_version = 0.2.1 [wheel] universal = 1