Skip to content

Commit

Permalink
Merge pull request #42 from SaryTech/fix_django_3.2_compatibility
Browse files Browse the repository at this point in the history
Fixed compatibility with django 3.2
  • Loading branch information
bashu authored Sep 20, 2022
2 parents 84ad3d4 + 1f2b83c commit e3872b0
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 e3872b0

Please sign in to comment.