X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..e41eda9e5ca27742a6430d3abdd6bebcb4704938:/forum/models/__init__.py?ds=sidebyside diff --git a/forum/models/__init__.py b/forum/models/__init__.py index ef1e84b..5b6414a 100644 --- a/forum/models/__init__.py +++ b/forum/models/__init__.py @@ -1,14 +1,16 @@ -from question import Question ,QuestionRevision, AnonymousQuestion, FavoriteQuestion, QuestionSubscription -from answer import Answer, AnonymousAnswer, AnswerRevision +from question import Question ,QuestionRevision, FavoriteQuestion, QuestionSubscription +from answer import Answer, AnswerRevision from tag import Tag, MarkedTag -from meta import Vote, Comment, FlaggedItem, LikedComment +from meta import Vote, FlaggedItem from user import User, Activity, ValidationHash, AuthKeyUserAssociation, SubscriptionSettings from repute import Badge, Award, Repute +from node import Node, NodeRevision, NodeMetaClass, AnonymousNode +from comment import Comment from utils import KeyValue try: from south.modelsinspector import add_introspection_rules - add_introspection_rules([], [r"^forum\.models\.utils\.\w+"]) + add_introspection_rules([], [r"^forum\.models\.\w+\.\w+"]) except: pass @@ -23,9 +25,10 @@ def is_new(sender, instance, **kwargs): pre_save.connect(is_new) __all__ = [ - 'Question', 'QuestionRevision', 'FavoriteQuestion', 'AnonymousQuestion', 'QuestionSubscription', - 'Answer', 'AnswerRevision', 'AnonymousAnswer', - 'Tag', 'Comment', 'Vote', 'FlaggedItem', 'MarkedTag', 'LikedComment', 'Badge', 'Award', 'Repute', + 'Node', 'NodeRevision', 'AnonymousNode', + 'Question', 'FavoriteQuestion', 'QuestionSubscription', 'QuestionRevision', + 'Answer', 'AnswerRevision', + 'Tag', 'Comment', 'Vote', 'FlaggedItem', 'MarkedTag', 'Badge', 'Award', 'Repute', 'Activity', 'ValidationHash', 'AuthKeyUserAssociation', 'SubscriptionSettings', 'KeyValue', 'User', ] @@ -36,3 +39,5 @@ for k, v in get_modules_script_classes('models', models.Model).items(): if not k in __all__: __all__.append(k) exec "%s = v" % k + +NodeMetaClass.setup_relations() \ No newline at end of file