Skip to content

Commit

Permalink
[Fixes GeoNode#7366] Fix render function
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed May 3, 2021
1 parent 5b6d438 commit 3667756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ def err403(request, exception):


def handler404(request, exception, template_name="404.html"):
response = render(template_name)
response = render(request, template_name)
response.status_code = 404
return response


def handler500(request, template_name="500.html"):
response = render(template_name)
response = render(request, template_name)
response.status_code = 500
return response

Expand Down

0 comments on commit 3667756

Please sign in to comment.