Added the select_by_user method to the Node object
[plstackapi.git] / 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