Added the select_by_user method to the Node object
authorSapan Bhatia <gwsapan@gmail.com>
Fri, 13 Jun 2014 16:50:36 +0000 (12:50 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Fri, 13 Jun 2014 16:50:36 +0000 (12:50 -0400)
planetstack/core/models/node.py

index c3c2eab..56aee68 100644 (file)
@@ -14,3 +14,8 @@ class Node(PlCoreBase):
     tags = generic.GenericRelation(Tag)
 
     def __unicode__(self):  return u'%s' % (self.name)
+
+    @staticmethod
+    def select_by_user(user):
+        qs = Node.objects.all()
+        return qs