Skip to content

Commit

Permalink
Run make fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Nov 29, 2024
1 parent 9d66389 commit 503e060
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/peoplefinder/services/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ def get_all_parent_teams(self, child: Team) -> QuerySet:
QuerySet: A query of teams.
"""
return (
Team.objects.filter(parents__child=child)
.exclude(parents__parent=child)
Team.objects.filter(parents__child=child).exclude(parents__parent=child)
# TODO: Not sure if we should order here or at the call sites.
.order_by("-parents__depth")
)
Expand Down
4 changes: 2 additions & 2 deletions src/peoplefinder/views/team.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.core.exceptions import SuspiciousOperation
from django.db import models, transaction
from django.db.models import Avg, F, Field, OuterRef, Q, QuerySet, Subquery
from django.db.models import QuerySet
from django.http import HttpRequest
from django.http.response import HttpResponse as HttpResponse
from django.shortcuts import redirect
Expand All @@ -12,7 +12,7 @@
from django.views.generic.edit import CreateView, DeleteView, UpdateView

from peoplefinder.forms.team import TeamForm
from peoplefinder.models import Person, Team, TeamMember
from peoplefinder.models import Team, TeamMember
from peoplefinder.services.audit_log import AuditLogService
from peoplefinder.services.team import TeamService

Expand Down

0 comments on commit 503e060

Please sign in to comment.