-from question import Question ,QuestionRevision, FavoriteQuestion, QuestionSubscription\r
+from question import Question ,QuestionRevision, QuestionSubscription\r
from answer import Answer, AnswerRevision\r
from tag import Tag, MarkedTag\r
-from meta import Vote, Comment, FlaggedItem, LikedComment\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 user import User, ValidationHash, AuthKeyUserAssociation, SubscriptionSettings\r
+from node import Node, NodeRevision, NodeMetaClass\r
+from comment import Comment\r
+from action import Action, ActionRepute\r
+from meta import Vote, Flag, Badge, Award\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
from base import *\r
\r
-def is_new(sender, instance, **kwargs):\r
- try:\r
- instance._is_new = not bool(instance.id)\r
- except:\r
- pass\r
-\r
-pre_save.connect(is_new)\r
-\r
__all__ = [\r
- 'Node', 'NodeRevision', 'AnonymousNode', \r
- 'Question', 'FavoriteQuestion', 'QuestionSubscription', 'QuestionRevision',\r
+ 'Node', 'NodeRevision', \r
+ 'Question', 'QuestionSubscription', 'QuestionRevision',\r
'Answer', 'AnswerRevision',\r
- 'Tag', 'Comment', 'Vote', 'FlaggedItem', 'MarkedTag', 'LikedComment', 'Badge', 'Award', 'Repute',\r
- 'Activity', 'ValidationHash', 'AuthKeyUserAssociation', 'SubscriptionSettings', 'KeyValue', 'User',\r
+ 'Tag', 'Comment', 'MarkedTag', 'Badge', 'Award',\r
+ 'ValidationHash', 'AuthKeyUserAssociation', 'SubscriptionSettings', 'KeyValue', 'User',\r
+ 'Action', 'ActionRepute', 'Vote', 'Flag'\r
]\r
\r
\r
__all__.append(k)\r
exec "%s = v" % k\r
\r
-NodeMetaClass.setup_relations()
\ No newline at end of file
+NodeMetaClass.setup_relations()\r
+BaseMetaClass.setup_denormalizes()
\ No newline at end of file