diff --git a/applications/backend/django_server/news/filters.py b/applications/backend/django_server/news/filters.py index 1cd2e56..0fcef96 100644 --- a/applications/backend/django_server/news/filters.py +++ b/applications/backend/django_server/news/filters.py @@ -1,4 +1,5 @@ import django_filters + from .models import News @@ -7,4 +8,4 @@ class NewsFilter(django_filters.FilterSet): class Meta: model = News - fields = ["category", "symbol", "src", "need_attention", "date"] \ No newline at end of file + fields = ["category", "symbol", "src", "need_attention", "date"] diff --git a/applications/backend/django_server/news/views.py b/applications/backend/django_server/news/views.py index 2837620..de73824 100644 --- a/applications/backend/django_server/news/views.py +++ b/applications/backend/django_server/news/views.py @@ -1,5 +1,4 @@ from django.utils import timezone - from rest_framework import viewsets from .models import Analysis, News, Ticker