diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 6feca05f92..d404b64839 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -875,10 +875,8 @@ (define-public python-django-sortedm2m `(#:phases (modify-phases %standard-phases (replace 'check (lambda _ - (setenv "PYTHONPATH" (string-append "./test_project:" - "./build/lib:.:" - (getenv "PYTHONPATH"))) - (invoke "django-admin.py" "test" "--settings=settings")))))) + (invoke "python" "django-admin.py" + "test" "--settings=settings")))))) (native-inputs `(("python-django" ,python-django))) (home-page "https://github.com/jazzband/django-sortedm2m")