You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just had to run down a circular import that I couldn't quite determine the cause of, until I realized that my widgets.py was importing my choosable class, and my choosable class was defined in the same file as the model that uses my widget in its form panels.
Currently, I'm facing circular dependency in
AdminChooser
and solved this by importing the Model in the__init__
like this:While it works, it's not really ideal.
Allowing model to be set as String (like
SnippetChooserPanel
) and resolving it dynamically will provide great ergonomics I believe.The text was updated successfully, but these errors were encountered: