Skip to content

Commit e3872b0

Browse files
authored
Merge pull request #42 from SaryTech/fix_django_3.2_compatibility
Fixed compatibility with django 3.2
2 parents 84ad3d4 + 1f2b83c commit e3872b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maintenancemode/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def process_request(self, request):
5151
return None
5252
# Otherwise show the user the 503 page
5353

54-
if (DJANGO_VERSION_MAJOR == 3 and DJANGO_VERSION_MINOR <= 2) or DJANGO_VERSION_MAJOR < 3:
54+
if (DJANGO_VERSION_MAJOR == 3 and DJANGO_VERSION_MINOR < 2) or DJANGO_VERSION_MAJOR < 3:
5555
# Checks if DJANGO version is less than 3.2.0 for breaking change
5656
resolver = get_resolver()
5757

0 commit comments

Comments
 (0)