From c89d6623db08c18d871fce07eabcb5702b553628 Mon Sep 17 00:00:00 2001 From: Andy Boughton Date: Mon, 14 Oct 2019 13:34:54 -0400 Subject: [PATCH] Appease linters and prep 0.1 release --- config/auth_urls.py | 4 ++-- locuszoom_plotting_service/gwas/admin.py | 2 ++ locuszoom_plotting_service/gwas/views.py | 3 --- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/auth_urls.py b/config/auth_urls.py index dbe0607..67a7bd1 100644 --- a/config/auth_urls.py +++ b/config/auth_urls.py @@ -10,14 +10,14 @@ import importlib -from django.conf.urls import include, url +from django.conf.urls import include from django.urls import path from allauth.account.views import login, logout, SignupView from allauth.socialaccount import providers from allauth.socialaccount import views as social_views -providers_urlpatterns = [] +providers_urlpatterns = [] # type: ignore for provider in providers.registry.get_list(): prov_mod = importlib.import_module(provider.get_package() + '.urls') diff --git a/locuszoom_plotting_service/gwas/admin.py b/locuszoom_plotting_service/gwas/admin.py index 0c66987..58a7360 100644 --- a/locuszoom_plotting_service/gwas/admin.py +++ b/locuszoom_plotting_service/gwas/admin.py @@ -15,6 +15,7 @@ # We may want to re-enable this in the future, but for now this is a powerful action and we will delete it admin.site.disable_action('delete_selected') + # Add custom UI: view analysis info objects, ingest status, maybe a default sort order class AnalysisInfoAdmin(admin.ModelAdmin): list_display = ['created', 'owner', 'label', 'ingest_status'] @@ -41,4 +42,5 @@ def has_delete_permission(self, request, obj=None): # requests) return False + admin.site.register(AnalysisInfo, AnalysisInfoAdmin) diff --git a/locuszoom_plotting_service/gwas/views.py b/locuszoom_plotting_service/gwas/views.py index 0bcff60..313794d 100644 --- a/locuszoom_plotting_service/gwas/views.py +++ b/locuszoom_plotting_service/gwas/views.py @@ -9,7 +9,6 @@ from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin -from django.db import transaction from django.shortcuts import get_object_or_404 from django.urls import reverse, reverse_lazy from django.views.generic import ( @@ -29,8 +28,6 @@ HttpResponseRedirect, ) -from locuszoom_plotting_service.taskapp import tasks - from . import forms as lz_forms from . import models as lz_models from . import permissions as lz_permissions