commit | 690f8031c0dccac12375ec4bcf8a017915d42080 | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <gwsapan@gmail.com> | Fri Jun 13 12:50:36 2014 -0400 |
committer | Sapan Bhatia <gwsapan@gmail.com> | Fri Jun 13 12:50:36 2014 -0400 |
tree | 37617e5236e8ca552d6767bfedf5f8d44718db13 | |
parent | dea3943a380d8a5bcd22a7263cdb626fd439ee58 [diff] |
Added the select_by_user method to the Node object
diff --git a/planetstack/core/models/node.py b/planetstack/core/models/node.py index c3c2eab..56aee68 100644 --- a/planetstack/core/models/node.py +++ b/planetstack/core/models/node.py
@@ -14,3 +14,8 @@ tags = generic.GenericRelation(Tag) def __unicode__(self): return u'%s' % (self.name) + + @staticmethod + def select_by_user(user): + qs = Node.objects.all() + return qs