Skip to content

Commit

Permalink
fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Oct 16, 2024
1 parent 9059cdd commit e61f48b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coldfront/core/project/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from model_utils.models import TimeStampedModel
from simple_history.models import HistoricalRecords

from coldfront.core.department.models import Department
from ifxuser.models import Organization
from coldfront.core.field_of_science.models import FieldOfScience
from coldfront.core.utils.common import import_from_settings

Expand Down Expand Up @@ -218,7 +218,7 @@ def user_permissions(self, user):

# if the user is an approver in a department connected to the project,
# give them user permissions
departments = Department.objects.filter(
departments = Organization.objects.filter(
org_tree='Research Computing Storage Billing'
)
proj_departments = [d for d in departments if self in d.get_projects()]
Expand Down

0 comments on commit e61f48b

Please sign in to comment.