From 9f2e3df58ab7d2185258c2644e8bc9829bbefdd5 Mon Sep 17 00:00:00 2001 From: YuriyCherniy Date: Fri, 24 Feb 2023 23:31:49 +0300 Subject: [PATCH] project isorted --- core/tests/test_views.py | 2 +- lazy_url/urls.py | 5 +++-- short_urls/tests/test_views.py | 2 +- short_urls/views.py | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/tests/test_views.py b/core/tests/test_views.py index b3fc8bd..d91d1c9 100644 --- a/core/tests/test_views.py +++ b/core/tests/test_views.py @@ -1,5 +1,5 @@ from django.shortcuts import reverse -from django.test import Client, TestCase, SimpleTestCase +from django.test import Client, SimpleTestCase, TestCase class IndexViewTestCase(TestCase): diff --git a/lazy_url/urls.py b/lazy_url/urls.py index d4e5b5d..0f9a0ad 100644 --- a/lazy_url/urls.py +++ b/lazy_url/urls.py @@ -5,8 +5,9 @@ from core.sitemap import IndexSiteMap from core.views import RobotsTxt -from short_urls.views import (UrlCreate, UrlCreateByForm, UrlCreateSuccess, - UrlDelete, UrlInformation, UrlOpen, RedirectToLongURL) +from short_urls.views import (RedirectToLongURL, UrlCreate, UrlCreateByForm, + UrlCreateSuccess, UrlDelete, UrlInformation, + UrlOpen) urlpatterns = [ path('admin/', include('admin_honeypot.urls', namespace='admin_honeypot')), diff --git a/short_urls/tests/test_views.py b/short_urls/tests/test_views.py index 551121a..578e2f9 100644 --- a/short_urls/tests/test_views.py +++ b/short_urls/tests/test_views.py @@ -3,7 +3,7 @@ from django.urls import reverse from short_urls.models import ForbiddenDomain, Url -from short_urls.views import UrlOpen, RedirectToLongURL +from short_urls.views import RedirectToLongURL, UrlOpen class ShortUrlViewTestCase(TestCase): diff --git a/short_urls/views.py b/short_urls/views.py index 01139c8..4b81761 100644 --- a/short_urls/views.py +++ b/short_urls/views.py @@ -3,7 +3,7 @@ from django.db.models import F from django.shortcuts import get_object_or_404, redirect, render from django.views import View -from django.views.generic import TemplateView, RedirectView +from django.views.generic import RedirectView, TemplateView from short_urls.forms import UrlCreateForm from short_urls.models import Url