From d63da6d40dcb8d2110bf0a004b4b7f46ed776020 Mon Sep 17 00:00:00 2001 From: Cuong Nguyen Date: Wed, 27 Sep 2023 17:23:43 +0700 Subject: [PATCH] fix css form row for django 4.2 --- README.rst | 2 +- admin_extended/templates/admin/base_site.html | 11 ++--------- setup.py | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/README.rst b/README.rst index 65b3651..9c3ea50 100644 --- a/README.rst +++ b/README.rst @@ -22,7 +22,7 @@ Install :: - pip install git+https://github.com/cuongnb14/django-admin-extended.git@v3.1#egg=django-admin-extended + pip install git+https://github.com/cuongnb14/django-admin-extended.git@v3.2#egg=django-admin-extended Setting ======= diff --git a/admin_extended/templates/admin/base_site.html b/admin_extended/templates/admin/base_site.html index 8621beb..70c013b 100644 --- a/admin_extended/templates/admin/base_site.html +++ b/admin_extended/templates/admin/base_site.html @@ -134,15 +134,8 @@ /* ALIGN FROM ROW ========================================================================================= */ - @media (min-width: 1024px) { - fieldset div.form-row { - display: flex; - } - - fieldset div.fieldBox { - flex: 1; - margin-right: 0; - } + .form-multiline > div { + flex: 1; } /* MENU SIDEBAR diff --git a/setup.py b/setup.py index c532ec8..188490f 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='django-admin-extended', - version='3.1', + version='3.2', packages=find_packages(), include_package_data=True, license='MIT License',