Commit c2ba346
authored
fix: restore lazy PyPIMixin import to prevent circular import crash (#1232)
The top-level import of PyPIMixin introduced in #1231 causes a circular
import at startup: DRF settings → DomainBasedPermission → pulp_python
views → rest_framework.viewsets → (circular). This crashes all API pods
with CrashLoopBackOff.
Restore the lazy import inside has_permission() where it was originally.
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 887d255 commit c2ba346
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments