Fix some imports now hatchway is third party

pull/509/head
Andrew Godwin 2023-02-13 21:17:26 -07:00
rodzic 8adc17c5ea
commit 91738748ec
9 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -5,9 +5,9 @@ from typing import Any, Generic, Protocol, TypeVar
from django.db import models
from django.http import HttpRequest
from hatchway.http import ApiResponse
from activities.models import PostInteraction
from hatchway.http import ApiResponse
T = TypeVar("T")

Wyświetl plik

@ -1,8 +1,8 @@
from django.shortcuts import get_object_or_404
from hatchway import api_view
from api import schemas
from api.decorators import identity_required
from hatchway import api_view
from users.models import Announcement
from users.services import AnnouncementService

Wyświetl plik

@ -1,6 +1,7 @@
from hatchway import api_view
from activities.models import Emoji
from api.schemas import CustomEmoji
from hatchway import api_view
@api_view.get

Wyświetl plik

@ -1,6 +1,7 @@
from api.decorators import identity_required
from hatchway import api_view
from api.decorators import identity_required
@identity_required
@api_view.get

Wyświetl plik

@ -1,9 +1,9 @@
from django.conf import settings
from hatchway import api_view
from activities.models import Post
from api import schemas
from core.models import Config
from hatchway import api_view
from takahe import __version__
from users.models import Domain, Identity

Wyświetl plik

@ -1,11 +1,11 @@
from django.http import HttpRequest
from hatchway import ApiResponse, api_view
from activities.models import TimelineEvent
from activities.services import TimelineService
from api import schemas
from api.decorators import identity_required
from api.pagination import MastodonPaginator, PaginatingApiResponse, PaginationResult
from hatchway import ApiResponse, api_view
@identity_required

Wyświetl plik

@ -1,10 +1,11 @@
from typing import Literal
from hatchway import Field, api_view
from activities.models import PostInteraction
from activities.services.search import SearchService
from api import schemas
from api.decorators import identity_required
from hatchway import Field, api_view
@identity_required

Wyświetl plik

@ -1,4 +1,5 @@
from django.http import HttpRequest
from hatchway import ApiError, ApiResponse, api_view
from activities.models import Post
from activities.services import TimelineService
@ -6,7 +7,6 @@ from api import schemas
from api.decorators import identity_required
from api.pagination import MastodonPaginator, PaginatingApiResponse, PaginationResult
from core.models import Config
from hatchway import ApiError, ApiResponse, api_view
@identity_required

Wyświetl plik

@ -1,8 +1,8 @@
from django.http import HttpRequest
from hatchway import api_view
from api import schemas
from api.decorators import identity_required
from hatchway import api_view
@identity_required