diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2021-03-17 22:20:58 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2021-03-17 22:21:23 +0100 |
commit | 19d120e045991226a07bbe3929bc3ed0db818790 (patch) | |
tree | 57b2d6fb5e724b4ef1d030586676d804b273a182 /client/models.py | |
parent | add rev to version and create document from non primary group (diff) | |
download | scout-subs-19d120e045991226a07bbe3929bc3ed0db818790.tar.gz scout-subs-19d120e045991226a07bbe3929bc3ed0db818790.zip |
users of group capi can optionally view documents
Diffstat (limited to 'client/models.py')
-rw-r--r-- | client/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/models.py b/client/models.py index d14a267..5b5db6a 100644 --- a/client/models.py +++ b/client/models.py @@ -111,3 +111,7 @@ class UserCode(models.Model): phone = models.CharField(default="", max_length=250) school = models.CharField(default="", max_length=250) year = models.IntegerField(default=0) + +class GroupSettings(models.Model): + group = models.ForeignKey(Group, default=None, on_delete=models.CASCADE) + view_documents = models.BooleanField(default=False)
\ No newline at end of file |