M src/wiki/models/__init__.py => src/wiki/models/__init__.py +0 -1
@@ 2,7 2,6 @@ from django.urls import base
from django import urls
from django import shortcuts
-# TODO: Don't use wildcards
from .article import * # noqa
from .pluginbase import * # noqa
from .urlpath import * # noqa
M src/wiki/models/article.py => src/wiki/models/article.py +6 -0
@@ 17,6 17,12 @@ from wiki.core.markdown import article_markdown
from wiki.decorators import disable_signal_for_loaddata
+__all__ = [
+ 'Article', 'ArticleForObject', 'ArticleRevision',
+ 'BaseRevisionMixin',
+]
+
+
class Article(models.Model):
objects = managers.ArticleManager()
M src/wiki/models/pluginbase.py => src/wiki/models/pluginbase.py +8 -0
@@ 26,6 26,14 @@ from wiki.decorators import disable_signal_for_loaddata
from .article import ArticleRevision, BaseRevisionMixin
+__all__ = [
+ 'ArticlePlugin',
+ 'SimplePlugin', 'SimplePluginCreateError',
+ 'ReusablePlugin',
+ 'RevisionPlugin', 'RevisionPluginRevision',
+]
+
+
class ArticlePlugin(models.Model):
"""This is the mother of all plugins. Extending from it means a deletion
M src/wiki/models/urlpath.py => src/wiki/models/urlpath.py +6 -0
@@ 19,6 19,12 @@ from wiki.core.exceptions import MultipleRootURLs, NoRootURL
from wiki.decorators import disable_signal_for_loaddata
from wiki.models.article import Article, ArticleForObject, ArticleRevision
+
+__all__ = [
+ 'URLPath',
+]
+
+
log = logging.getLogger(__name__)