summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2014-11-18 04:13:16 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2014-11-18 04:13:16 +0100
commit6f1cb6d23b3cea9a455da799f2b71f23cffcd430 (patch)
tree41df53dbf54fa1dc81b6f34c333cd51ee9a511fe
parented111715af05a3ac8aefb41dbc0305d2f94891e0 (diff)
downloadpadlite-teams-6f1cb6d23b3cea9a455da799f2b71f23cffcd430.tar.gz
padlite-teams-6f1cb6d23b3cea9a455da799f2b71f23cffcd430.tar.bz2
padlite-teams-6f1cb6d23b3cea9a455da799f2b71f23cffcd430.zip
models: add browsable flag for groups
It should be possible to distinguish public groups, that could be viewed if you know the name, and browsable groups, that could be enumerated from the home page.
-rw-r--r--models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/models.py b/models.py
index 9bdd61d..fd33a47 100644
--- a/models.py
+++ b/models.py
@@ -19,6 +19,7 @@ class Group(db.Model):
name = CharField(unique=True)
api_id = CharField(null=True)
public = BooleanField(default=False)
+ browsable = BooleanField(default=False)
def __unicode__(self):
return self.name