Remove model imports in any utils/ modules #443
Labels
app:lib
code quality
This item relates to code quality
good first issue
Good for newcomers
help wanted
Extra attention is needed
ready to work
Item is ready to be worked on
To prevent circular imports, we want ansible_base/utils imports to always be "safe" to import inside of Django apps.
Right now this doesn't work due to a stray import of
AbstractUser
which needs apps to be loaded before importing (or will throw an error).This can be done by moving these imports in-line, or more elegantly, but further code refactoring.
The text was updated successfully, but these errors were encountered: