From be15db47b95636118643b6f7d5b21f4c14934241 Mon Sep 17 00:00:00 2001 From: xenua Date: Sun, 19 Jun 2022 11:37:01 +0200 Subject: [PATCH] run isort --- leftists/migrations/0001_initial.py | 2 +- leftists/urls.py | 5 +++-- leftists/views.py | 5 +++-- lonk/urls.py | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/leftists/migrations/0001_initial.py b/leftists/migrations/0001_initial.py index f8fdc0b..efda774 100644 --- a/leftists/migrations/0001_initial.py +++ b/leftists/migrations/0001_initial.py @@ -1,7 +1,7 @@ # Generated by Django 4.0.5 on 2022-06-18 23:16 -from django.db import migrations, models import django.db.models.deletion +from django.db import migrations, models class Migration(migrations.Migration): diff --git a/leftists/urls.py b/leftists/urls.py index 844c172..9b72e58 100644 --- a/leftists/urls.py +++ b/leftists/urls.py @@ -1,7 +1,8 @@ from django.urls import path -from leftists.views import ShortLinkRedirectView, CoolerLoginView, OverView, LinkCreateView, LinkUpdateView, \ - LinkDeleteView, LinkListView +from leftists.views import (CoolerLoginView, LinkCreateView, LinkDeleteView, + LinkListView, LinkUpdateView, OverView, + ShortLinkRedirectView) urlpatterns = [ path('', CoolerLoginView.as_view(), name='login'), diff --git a/leftists/views.py b/leftists/views.py index c52f9ca..366f459 100644 --- a/leftists/views.py +++ b/leftists/views.py @@ -2,8 +2,9 @@ from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.views import LoginView from django.shortcuts import get_object_or_404 from django.urls import reverse_lazy -from django.views.generic import RedirectView, TemplateView, CreateView, UpdateView, DeleteView, ListView -from django_scopes import scopes_disabled, scope +from django.views.generic import (CreateView, DeleteView, ListView, + RedirectView, TemplateView, UpdateView) +from django_scopes import scope, scopes_disabled from scopedsites.models import Domain from leftists.forms import LinkForm diff --git a/lonk/urls.py b/lonk/urls.py index 2de6905..7fe771a 100644 --- a/lonk/urls.py +++ b/lonk/urls.py @@ -13,7 +13,7 @@ Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ -from django.urls import path, include +from django.urls import include, path urlpatterns = [ path('', include('leftists.urls')),