Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backwards incompatible: remove collecting import from fluent_pages.in…
…tegration.fluent_contents This turned out to be a really bad idea, forcing projects into debugging various circular import errors. By making sure the admin is NOT importing during a models import, many cross-importing cases are solved. This issue is amplified when projects use FLUENT_PAGES_PARENT_ADMIN_MIXIN/FLUENT_PAGES_CHILD_ADMIN_MIXIN to insert their own admin mixin classes, which could easily issue a module scan. The prominent example is django-guardian's admin calling get_user_model()
- Loading branch information
Showing
8 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# import apipkg | ||
# | ||
# realmodule = "fluent_pages.integration._fluent_contents" | ||
# apipkg.initpkg(__name__, { | ||
# 'fluent_contents': { | ||
# 'FluentContentsPage': realmodule + ".models.FluentContentsPage", | ||
# 'FluentContentsPageAdmin': realmodule + ".admin.FluentContentsPageAdmin", | ||
# 'FluentContentsPagePlugin': realmodule + ".admin.FluentContentsPagePlugin", | ||
# } | ||
# }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters