From 66907e1bf147d069e0ed4a19b973fdddd6dbe4b9 Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 8 Jul 2024 21:53:18 +1200 Subject: [PATCH] Fix pylint errors --- tardis/apps/idw_download/default_settings.py | 2 +- tardis/apps/idw_download/urls.py | 2 +- tardis/apps/idw_download/views/idw.py | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tardis/apps/idw_download/default_settings.py b/tardis/apps/idw_download/default_settings.py index c6743d820..bf0bb3616 100644 --- a/tardis/apps/idw_download/default_settings.py +++ b/tardis/apps/idw_download/default_settings.py @@ -2,4 +2,4 @@ USER_MENU_MODIFIERS.extend( ["tardis.apps.idw_download.user_menu_modifiers.add_idw_menu_item"] -) \ No newline at end of file +) diff --git a/tardis/apps/idw_download/urls.py b/tardis/apps/idw_download/urls.py index 6a59619fc..d8ded196e 100644 --- a/tardis/apps/idw_download/urls.py +++ b/tardis/apps/idw_download/urls.py @@ -7,4 +7,4 @@ urlpatterns = [re_path("idw-yaml/", IDWYAMLView.as_view(), name="idw-yaml"), re_path("^$", IDWIndexView.as_view(), name="index") -] \ No newline at end of file +] diff --git a/tardis/apps/idw_download/views/idw.py b/tardis/apps/idw_download/views/idw.py index 6d025b364..2089e8d8d 100644 --- a/tardis/apps/idw_download/views/idw.py +++ b/tardis/apps/idw_download/views/idw.py @@ -1,7 +1,6 @@ from django.contrib.auth.decorators import login_required -from django.shortcuts import render from django.views.generic.base import TemplateView -# @login_required +@login_required class IDWIndexView(TemplateView): - template_name = "idw/index.html" \ No newline at end of file + template_name = "idw/index.html"