Skip to content

Commit f4485e1

Browse files
committed
Recommend installation of wagtail_modeladmin for Wagtail version 5.1+, Move installation of wagtail_modeladmin to extras
1 parent 0da95fc commit f4485e1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ and ``wagtailfontawesome`` apps in your project's ``INSTALLED_APPS``:
5353
5454
INSTALLED_APPS = [
5555
# ...
56-
'wagtail_modeladmin' if WAGTAIL_VERSION >= (5, 1) else 'wagtail.contrib.modeladmin',
56+
'wagtail_modeladmin', # if Wagtail >=5.1; Don't repeat if it's there already
57+
'wagtail.contrib.modeladmin', # if Wagtail <5.1; Don't repeat if it's there already
5758
'wagtail_personalisation',
5859
'wagtailfontawesome',
5960
# ...

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"user-agents>=1.1.0",
88
"wagtailfontawesome>=1.2.1",
99
"pycountry",
10-
"wagtail_modeladmin>=1.0",
1110
]
1211

1312
tests_require = [
@@ -24,6 +23,7 @@
2423
"pytest==6.2.5",
2524
"wagtail_factories==4.1.0",
2625
"pytest-mock==3.8.1",
26+
"wagtail_modeladmin>=1.0",
2727
]
2828

2929
docs_require = [

0 commit comments

Comments
 (0)