From 0f4dc3b19fd81e206f9834b1bf710f2ce4649730 Mon Sep 17 00:00:00 2001 From: Henri Dickson <90480431+alphatownsman@users.noreply.github.com> Date: Tue, 2 Jan 2024 18:21:29 -0500 Subject: [PATCH] remove unused imports --- activities/models/post.py | 1 - users/models/relay.py | 6 +----- users/views/admin/relays.py | 3 +-- 3 files changed, 2 insertions(+), 8 deletions(-) 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")