Browse Source

run isort

main
xenua 2 years ago
parent
commit
be15db47b9
Signed by: xenua
GPG Key ID: 8F93B68BD37255B8
  1. 2
      leftists/migrations/0001_initial.py
  2. 5
      leftists/urls.py
  3. 5
      leftists/views.py
  4. 2
      lonk/urls.py

2
leftists/migrations/0001_initial.py

@ -1,7 +1,7 @@
# Generated by Django 4.0.5 on 2022-06-18 23:16 # Generated by Django 4.0.5 on 2022-06-18 23:16
from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration): class Migration(migrations.Migration):

5
leftists/urls.py

@ -1,7 +1,8 @@
from django.urls import path from django.urls import path
from leftists.views import ShortLinkRedirectView, CoolerLoginView, OverView, LinkCreateView, LinkUpdateView, \ from leftists.views import (CoolerLoginView, LinkCreateView, LinkDeleteView,
LinkDeleteView, LinkListView LinkListView, LinkUpdateView, OverView,
ShortLinkRedirectView)
urlpatterns = [ urlpatterns = [
path('', CoolerLoginView.as_view(), name='login'), path('', CoolerLoginView.as_view(), name='login'),

5
leftists/views.py

@ -2,8 +2,9 @@ from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.views import LoginView from django.contrib.auth.views import LoginView
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404
from django.urls import reverse_lazy from django.urls import reverse_lazy
from django.views.generic import RedirectView, TemplateView, CreateView, UpdateView, DeleteView, ListView from django.views.generic import (CreateView, DeleteView, ListView,
from django_scopes import scopes_disabled, scope RedirectView, TemplateView, UpdateView)
from django_scopes import scope, scopes_disabled
from scopedsites.models import Domain from scopedsites.models import Domain
from leftists.forms import LinkForm from leftists.forms import LinkForm

2
lonk/urls.py

@ -13,7 +13,7 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path 1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.urls import path, include from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('', include('leftists.urls')), path('', include('leftists.urls')),

Loading…
Cancel
Save