diff --git a/activities/models/post.py b/activities/models/post.py index 1fc6a39..f907f1c 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -40,7 +40,6 @@ from core.ld import ( from core.snowflake import Snowflake from stator.exceptions import TryAgainLater from stator.models import State, StateField, StateGraph, StatorModel -from users.models import relay from users.models.follow import FollowStates from users.models.hashtag_follow import HashtagFollow from users.models.identity import Identity, IdentityStates diff --git a/users/models/relay.py b/users/models/relay.py index 1bce4b2..ae7edb0 100644 --- a/users/models/relay.py +++ b/users/models/relay.py @@ -1,12 +1,8 @@ import logging import re -from typing import Optional -import httpx -from django.db import models, transaction +from django.db import models -from core.ld import canonicalise, get_str_or_id -from core.snowflake import Snowflake from stator.models import State, StateField, StateGraph, StatorModel from users.models.system_actor import SystemActor diff --git a/users/views/admin/relays.py b/users/views/admin/relays.py index e6ed3d0..19be5eb 100644 --- a/users/views/admin/relays.py +++ b/users/views/admin/relays.py @@ -1,10 +1,9 @@ -from django.db import models from django.shortcuts import redirect from django.utils.decorators import method_decorator from django.views.generic import ListView from users.decorators import admin_required -from users.models import Identity, Relay +from users.models import Relay @method_decorator(admin_required, name="dispatch")