Fix Ruff import ordering for CI
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m53s
CI/CD Pipeline / Run Tests (push) Successful in 2m19s
CI/CD Pipeline / Build Docker Images (push) Successful in 3m26s
CI/CD Pipeline / Push to Gitea Registry (push) Failing after 20s
CI/CD Pipeline / Deploy to Server (push) Has been skipped
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m53s
CI/CD Pipeline / Run Tests (push) Successful in 2m19s
CI/CD Pipeline / Build Docker Images (push) Successful in 3m26s
CI/CD Pipeline / Push to Gitea Registry (push) Failing after 20s
CI/CD Pipeline / Deploy to Server (push) Has been skipped
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
from contextlib import suppress
|
||||
|
||||
from apps.core.models import BackgroundJob
|
||||
from apps.user.models import Profile, User
|
||||
from django.contrib import admin
|
||||
from django.contrib.admin.sites import NotRegistered
|
||||
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
|
||||
@@ -9,9 +11,6 @@ from django.contrib.auth.models import Group
|
||||
from django.utils.html import format_html
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from apps.core.models import BackgroundJob
|
||||
from apps.user.models import Profile, User
|
||||
|
||||
try:
|
||||
from django_celery_beat.models import (
|
||||
ClockedSchedule,
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
from typing import Any
|
||||
|
||||
from apps.core.exceptions import NotFoundError
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.db import transaction
|
||||
from rest_framework_simplejwt.tokens import RefreshToken
|
||||
|
||||
from apps.core.exceptions import NotFoundError
|
||||
|
||||
from .models import Profile
|
||||
|
||||
User = get_user_model()
|
||||
|
||||
Reference in New Issue
Block a user