diff --git a/python-django-grappelli.spec b/python-django-grappelli.spec index 8d6d2b7..9d0e449 100644 --- a/python-django-grappelli.spec +++ b/python-django-grappelli.spec @@ -26,6 +26,7 @@ License: BSD-2-Clause AND LGPL-2.1-or-later URL: https://github.com/sehmaschine/django-grappelli Source: https://github.com/sehmaschine/django-grappelli/archive/%{version}.tar.gz BuildRequires: %{python_module Django >= 2.2} +BuildRequires: %{python_module django-codemod} BuildRequires: %{python_module py >= 1.8} BuildRequires: %{python_module pytest >= 5.0} BuildRequires: %{python_module pytest-django >= 3.6} @@ -41,6 +42,7 @@ A jazzy skin for the Django Admin-Interface. %prep %setup -q -n django-grappelli-%{version} +djcodemod run --removed-in 4.0 grappelli/tests/urls.py %build %python_build