@property<EOL>def _node_rating_count(self):
try:<EOL><INDENT>return self.noderatingcount<EOL><DEDENT>except ObjectDoesNotExist:<EOL><INDENT>node_rating_count = NodeRatingCount(node=self)<EOL>node_rating_count.save()<EOL>return node_rating_count<EOL><DEDENT>
Return node_rating_count record
or create it if it does not exist

usage:
node = Node.objects.get(pk=1)
node.rating_count