-from question import Question ,QuestionRevision, AnonymousQuestion, FavoriteQuestion, QuestionSubscription\r
-from answer import Answer, AnonymousAnswer, AnswerRevision\r
+from question import Question ,QuestionRevision, FavoriteQuestion, QuestionSubscription\r
+from answer import Answer, AnswerRevision\r
from tag import Tag, MarkedTag\r
-from meta import Vote, Comment, FlaggedItem, LikedComment\r
+from meta import Vote, FlaggedItem\r
from user import User, Activity, ValidationHash, AuthKeyUserAssociation, SubscriptionSettings\r
from repute import Badge, Award, Repute\r
+from node import Node, NodeRevision, NodeMetaClass, AnonymousNode\r
+from comment import Comment\r
from utils import KeyValue\r
\r
try:\r
from south.modelsinspector import add_introspection_rules\r
- add_introspection_rules([], [r"^forum\.models\.utils\.\w+"])\r
+ add_introspection_rules([], [r"^forum\.models\.\w+\.\w+"])\r
except:\r
pass\r
\r
pre_save.connect(is_new)\r
\r
__all__ = [\r
- 'Question', 'QuestionRevision', 'FavoriteQuestion', 'AnonymousQuestion', 'QuestionSubscription',\r
- 'Answer', 'AnswerRevision', 'AnonymousAnswer',\r
- 'Tag', 'Comment', 'Vote', 'FlaggedItem', 'MarkedTag', 'LikedComment', 'Badge', 'Award', 'Repute',\r
+ 'Node', 'NodeRevision', 'AnonymousNode', \r
+ 'Question', 'FavoriteQuestion', 'QuestionSubscription', 'QuestionRevision',\r
+ 'Answer', 'AnswerRevision',\r
+ 'Tag', 'Comment', 'Vote', 'FlaggedItem', 'MarkedTag', 'Badge', 'Award', 'Repute',\r
'Activity', 'ValidationHash', 'AuthKeyUserAssociation', 'SubscriptionSettings', 'KeyValue', 'User',\r
]\r
\r
if not k in __all__:\r
__all__.append(k)\r
exec "%s = v" % k\r
+\r
+NodeMetaClass.setup_relations()
\ No newline at end of file