Commit 57c9916
committed
fix: circular import between groups.py and config.py breaks migrations
Move the DEFAULT_GROUP_SHARE_PERMISSION import from module level into
the two methods that use it. The top-level import created a cycle:
users -> groups -> config -> run_migrations -> auths -> users.
Migrations failed silently on startup.1 parent ebd7b9f commit 57c9916
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
| 135 | + | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
503 | 504 | | |
504 | 505 | | |
505 | 506 | | |
| 507 | + | |
506 | 508 | | |
507 | 509 | | |
508 | 510 | | |
| |||
0 commit comments