diff --git a/tests/test_custompatterns.py b/tests/test_custompatterns.py index 04de0d3..f0264ce 100644 --- a/tests/test_custompatterns.py +++ b/tests/test_custompatterns.py @@ -15,7 +15,7 @@ EntitySerializerCategoryEmpty, EntitySerializerCategoryCtxt, ) -DJANGO_AFTER_4_0 = (django.VERSION[0] > 4 and django.VERSION[1] > 0) +DJANGO_AFTER_4_0 = (django.VERSION[0] >= 4 and django.VERSION[1] > 0) class CustomPatternTestCase(APITestCase):