Skip to content

Commit 9e1d4a1

Browse files
committed
Avoid needless __import__()
1 parent c187ea6 commit 9e1d4a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytest_django/lazy_django.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ def django_settings_is_configured():
3030

3131

3232
def get_django_version():
33-
return __import__("django").VERSION
33+
import django
34+
35+
return django.VERSION

0 commit comments

Comments
 (0)