git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git://git.planet-lab.org/plstackapi
[plstackapi.git]
/
planetstack
/
core
/
models
/
tag.py
diff --git
a/planetstack/core/models/tag.py
b/planetstack/core/models/tag.py
index
cbe63a5
..
7818c32
100644
(file)
--- a/
planetstack/core/models/tag.py
+++ b/
planetstack/core/models/tag.py
@@
-22,3
+22,12
@@
class Tag(PlCoreBase):
def __unicode__(self):
return self.name
+
+ def can_update(self, user):
+ if user.is_admin:
+ return True
+ return False
+
+ @staticmethod
+ def select_by_user(user):
+ return Tag.objects.all()