1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Merge branch 'develop' into 738-detect-new-releases

This commit is contained in:
Jeremy Stretch
2020-03-13 10:05:24 -04:00
168 changed files with 1689 additions and 2569 deletions

View File

@ -317,6 +317,16 @@ class SearchView(View):
})
class StaticMediaFailureView(View):
"""
Display a user-friendly error message with troubleshooting tips when a static media file fails to load.
"""
def get(self, request):
return render(request, 'media_failure.html', {
'filename': request.GET.get('filename')
})
class APIRootView(APIView):
_ignore_model_permissions = True
exclude_from_schema = True