Skip to content

Commit

Permalink
Remove redundant code and update URLModificationMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
beeankha committed May 14, 2019
1 parent 318e063 commit a6d3c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion awx/main/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def _convert_named_url(self, url_path):
return '/'.join(url_units)

def __call__(self, request):
response = self.process_request(request)
response = self.get_response(request)
return response

def process_request(self, request):
Expand Down
2 changes: 1 addition & 1 deletion awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ def IS_TESTING(argv=None):
# Delete temporary directories created to store playbook run-time
AWX_CLEANUP_PATHS = True

MIDDLEWARE = [ # NOQA
MIDDLEWARE = [
'awx.main.middleware.TimingMiddleware',
'awx.main.middleware.MigrationRanCheckMiddleware',
'corsheaders.middleware.CorsMiddleware',
Expand Down

0 comments on commit a6d3c0f

Please sign in to comment.