Remove unused imports
This commit is contained in:
parent
c48de9c6e1
commit
12b4aa0b91
14 changed files with 3 additions and 40 deletions
|
|
@ -1,11 +1,6 @@
|
||||||
from django.contrib.auth import views as django_views
|
from django.contrib.auth import views as django_views
|
||||||
from django.urls import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
|
|
||||||
from newsreader.news.collection.reddit import (
|
|
||||||
get_reddit_access_token,
|
|
||||||
get_reddit_authorization_url,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# PasswordResetView sends the mail
|
# PasswordResetView sends the mail
|
||||||
# PasswordResetDoneView shows a success message for the above
|
# PasswordResetDoneView shows a success message for the above
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@ from django.views.generic import TemplateView
|
||||||
|
|
||||||
from registration.backends.default import views as registration_views
|
from registration.backends.default import views as registration_views
|
||||||
|
|
||||||
from newsreader.news.collection.reddit import (
|
|
||||||
get_reddit_access_token,
|
|
||||||
get_reddit_authorization_url,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# RegistrationView shows a registration form and sends the email
|
# RegistrationView shows a registration form and sends the email
|
||||||
# RegistrationCompleteView shows after filling in the registration form
|
# RegistrationCompleteView shows after filling in the registration form
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,6 @@ from django.views.generic.edit import FormView, ModelFormMixin
|
||||||
|
|
||||||
from newsreader.accounts.forms import UserSettingsForm
|
from newsreader.accounts.forms import UserSettingsForm
|
||||||
from newsreader.accounts.models import User
|
from newsreader.accounts.models import User
|
||||||
from newsreader.news.collection.reddit import (
|
|
||||||
get_reddit_access_token,
|
|
||||||
get_reddit_authorization_url,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class SettingsView(ModelFormMixin, FormView):
|
class SettingsView(ModelFormMixin, FormView):
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,7 @@ from rest_framework.generics import (
|
||||||
)
|
)
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
|
|
||||||
from newsreader.core.pagination import (
|
from newsreader.core.pagination import CursorPagination
|
||||||
CursorPagination,
|
|
||||||
LargeResultSetPagination,
|
|
||||||
ResultSetPagination,
|
|
||||||
)
|
|
||||||
from newsreader.news.collection.models import CollectionRule
|
from newsreader.news.collection.models import CollectionRule
|
||||||
from newsreader.news.collection.serializers import RuleSerializer
|
from newsreader.news.collection.serializers import RuleSerializer
|
||||||
from newsreader.news.core.filters import ReadFilter
|
from newsreader.news.core.filters import ReadFilter
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ from newsreader.news.collection.base import (
|
||||||
)
|
)
|
||||||
from newsreader.news.collection.choices import RuleTypeChoices
|
from newsreader.news.collection.choices import RuleTypeChoices
|
||||||
from newsreader.news.collection.exceptions import (
|
from newsreader.news.collection.exceptions import (
|
||||||
StreamDeniedException,
|
|
||||||
StreamException,
|
StreamException,
|
||||||
StreamNotFoundException,
|
StreamNotFoundException,
|
||||||
StreamParseException,
|
StreamParseException,
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,6 @@ from newsreader.news.collection.base import (
|
||||||
Scheduler,
|
Scheduler,
|
||||||
)
|
)
|
||||||
from newsreader.news.collection.choices import RuleTypeChoices
|
from newsreader.news.collection.choices import RuleTypeChoices
|
||||||
from newsreader.news.collection.constants import (
|
|
||||||
WHITELISTED_ATTRIBUTES,
|
|
||||||
WHITELISTED_TAGS,
|
|
||||||
)
|
|
||||||
from newsreader.news.collection.exceptions import (
|
from newsreader.news.collection.exceptions import (
|
||||||
BuilderDuplicateException,
|
BuilderDuplicateException,
|
||||||
BuilderException,
|
BuilderException,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ from bs4 import BeautifulSoup
|
||||||
|
|
||||||
from newsreader.news.collection.exceptions import (
|
from newsreader.news.collection.exceptions import (
|
||||||
StreamDeniedException,
|
StreamDeniedException,
|
||||||
StreamException,
|
|
||||||
StreamForbiddenException,
|
StreamForbiddenException,
|
||||||
StreamNotFoundException,
|
StreamNotFoundException,
|
||||||
StreamParseException,
|
StreamParseException,
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,8 @@ from freezegun import freeze_time
|
||||||
|
|
||||||
from newsreader.news.collection.exceptions import (
|
from newsreader.news.collection.exceptions import (
|
||||||
StreamDeniedException,
|
StreamDeniedException,
|
||||||
StreamException,
|
|
||||||
StreamForbiddenException,
|
StreamForbiddenException,
|
||||||
StreamNotFoundException,
|
StreamNotFoundException,
|
||||||
StreamParseException,
|
|
||||||
StreamTimeOutException,
|
StreamTimeOutException,
|
||||||
)
|
)
|
||||||
from newsreader.news.collection.feed import FeedCollector
|
from newsreader.news.collection.feed import FeedCollector
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ from newsreader.news.collection.exceptions import (
|
||||||
StreamNotFoundException,
|
StreamNotFoundException,
|
||||||
StreamParseException,
|
StreamParseException,
|
||||||
StreamTimeOutException,
|
StreamTimeOutException,
|
||||||
StreamTooManyException,
|
|
||||||
)
|
)
|
||||||
from newsreader.news.collection.tests.factories import TwitterTimelineFactory
|
from newsreader.news.collection.tests.factories import TwitterTimelineFactory
|
||||||
from newsreader.news.collection.tests.twitter.stream.mocks import simple_mock
|
from newsreader.news.collection.tests.twitter.stream.mocks import simple_mock
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ from newsreader.news.collection.exceptions import (
|
||||||
BuilderException,
|
BuilderException,
|
||||||
BuilderMissingDataException,
|
BuilderMissingDataException,
|
||||||
BuilderParseException,
|
BuilderParseException,
|
||||||
StreamDeniedException,
|
|
||||||
StreamException,
|
StreamException,
|
||||||
StreamNotFoundException,
|
StreamNotFoundException,
|
||||||
StreamParseException,
|
StreamParseException,
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,7 @@ from django.views.generic.edit import CreateView, FormView, UpdateView
|
||||||
from django_celery_beat.models import IntervalSchedule
|
from django_celery_beat.models import IntervalSchedule
|
||||||
|
|
||||||
from newsreader.news.collection.choices import RuleTypeChoices
|
from newsreader.news.collection.choices import RuleTypeChoices
|
||||||
from newsreader.news.collection.forms import (
|
from newsreader.news.collection.forms import FeedForm, OPMLImportForm
|
||||||
CollectionRuleBulkForm,
|
|
||||||
FeedForm,
|
|
||||||
OPMLImportForm,
|
|
||||||
)
|
|
||||||
from newsreader.news.collection.models import CollectionRule
|
from newsreader.news.collection.models import CollectionRule
|
||||||
from newsreader.news.collection.views.base import (
|
from newsreader.news.collection.views.base import (
|
||||||
CollectionRuleDetailMixin,
|
CollectionRuleDetailMixin,
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,7 @@ from django.views.generic.edit import FormView
|
||||||
from django.views.generic.list import ListView
|
from django.views.generic.list import ListView
|
||||||
|
|
||||||
from newsreader.news.collection.forms import CollectionRuleBulkForm
|
from newsreader.news.collection.forms import CollectionRuleBulkForm
|
||||||
from newsreader.news.collection.views.base import (
|
from newsreader.news.collection.views.base import CollectionRuleViewMixin
|
||||||
CollectionRuleDetailMixin,
|
|
||||||
CollectionRuleViewMixin,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class CollectionRuleListView(CollectionRuleViewMixin, ListView):
|
class CollectionRuleListView(CollectionRuleViewMixin, ListView):
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ from rest_framework import status
|
||||||
from rest_framework.generics import (
|
from rest_framework.generics import (
|
||||||
GenericAPIView,
|
GenericAPIView,
|
||||||
ListAPIView,
|
ListAPIView,
|
||||||
ListCreateAPIView,
|
|
||||||
RetrieveUpdateAPIView,
|
RetrieveUpdateAPIView,
|
||||||
RetrieveUpdateDestroyAPIView,
|
RetrieveUpdateDestroyAPIView,
|
||||||
get_object_or_404,
|
get_object_or_404,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ from newsreader.news.core.views import (
|
||||||
CategoryCreateView,
|
CategoryCreateView,
|
||||||
CategoryListView,
|
CategoryListView,
|
||||||
CategoryUpdateView,
|
CategoryUpdateView,
|
||||||
NewsView,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue