Skip to content

Commit bf71abd

Browse files
committed
move feature flags into team context
1 parent 8a96cbd commit bf71abd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/teams/management/commands/clone_team.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ def _clone_team(
239239

240240
ctx = CloneContext(source_team=source_team, target_team=target_team, user=user)
241241

242-
# Add target team to same feature flags as source team
243-
self._clone_feature_flags(ctx)
244-
245242
# Set team context for audit logging
246243
with current_team(target_team):
244+
# Add target team to same feature flags as source team
245+
self._clone_feature_flags(ctx)
246+
247247
# Phase 2: Clone providers
248248
self._clone_providers(ctx)
249249

0 commit comments

Comments
 (0)