Remove useless imports

This commit is contained in:
Edgar P. Burkhart 2022-12-29 18:49:14 +01:00
parent 963c91594a
commit df2f2e4c37
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
9 changed files with 2 additions and 14 deletions

View file

@ -2,7 +2,6 @@ import pathlib
import uuid import uuid
from datetime import date from datetime import date
from django.core.files.storage import Storage
from django.core.validators import FileExtensionValidator from django.core.validators import FileExtensionValidator
from django.db import models from django.db import models
from django.forms import ModelForm from django.forms import ModelForm

View file

@ -1,5 +1,4 @@
from django import template from django import template
from django.template.defaultfilters import stringfilter
from django.utils import formats from django.utils import formats
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe

View file

@ -1,3 +1,2 @@
from django.test import TestCase
# Create your tests here. # Create your tests here.

View file

@ -1,5 +1,4 @@
from django.contrib.auth import views as auth_views from django.contrib.auth import views as auth_views
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.postgres.search import ( from django.contrib.postgres.search import (
SearchQuery, SearchQuery,
@ -7,10 +6,8 @@ from django.contrib.postgres.search import (
SearchVector, SearchVector,
TrigramSimilarity, TrigramSimilarity,
) )
from django.core.paginator import Paginator
from django.db import models from django.db import models
from django.http import HttpResponse from django.shortcuts import get_object_or_404, redirect
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse_lazy from django.urls import reverse_lazy
from django.views.generic import ( from django.views.generic import (
CreateView, CreateView,

View file

@ -13,12 +13,9 @@ 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.conf import settings
from django.conf.urls.i18n import i18n_patterns from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.contrib import admin from django.contrib import admin
from django.urls import include, path from django.urls import include, path
from django.views.generic.base import RedirectView
from . import views from . import views

View file

@ -1,3 +1,2 @@
from django.contrib import admin
# Register your models here. # Register your models here.

View file

@ -1,3 +1,2 @@
from django.db import models
# Create your models here. # Create your models here.

View file

@ -1,3 +1,2 @@
from django.test import TestCase
# Create your tests here. # Create your tests here.

View file

@ -9,7 +9,7 @@ from django.shortcuts import get_object_or_404
from django.utils.translation import gettext as _ from django.utils.translation import gettext as _
from matplotlib import dates as mdates from matplotlib import dates as mdates
from main.models import Category, Invoice, Snapshot, Transaction from main.models import Category, Snapshot, Transaction
matplotlib.use("Agg") matplotlib.use("Agg")
plt.style.use("./plot/nummi.mplstyle") plt.style.use("./plot/nummi.mplstyle")