Skip to content

Commit

Permalink
fix: improved django version check in the middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
aqeelat committed Sep 20, 2022
1 parent 84ad3d4 commit 1f2b83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenancemode/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def process_request(self, request):
return None
# Otherwise show the user the 503 page

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

Expand Down

0 comments on commit 1f2b83c

Please sign in to comment.