aboutsummaryrefslogtreecommitdiffstats
path: root/client/models.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-09-26 19:36:27 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-09-26 19:36:27 +0200
commitfce95cb32394b449bd6a17e766daf0cc6442db49 (patch)
tree5011464801d61b57017768ecbda123a900a123c2 /client/models.py
parentswitch tab on the profile based on missing fields (diff)
downloadscout-subs-fce95cb32394b449bd6a17e766daf0cc6442db49.tar.gz
scout-subs-fce95cb32394b449bd6a17e766daf0cc6442db49.zip
create model to hide doctype from specific group
Diffstat (limited to 'client/models.py')
-rw-r--r--client/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/models.py b/client/models.py
index e01fe1f..20c8fa1 100644
--- a/client/models.py
+++ b/client/models.py
@@ -21,6 +21,11 @@ class DocumentType(models.Model):
name = models.CharField(default="", max_length=250)
+class HideGroup(models.Model):
+ group = models.ForeignKey(Group, default=None, on_delete=models.CASCADE)
+ doc_type = models.ForeignKey(DocumentType, default=None, on_delete=models.CASCADE)
+
+
class PersonalData(models.Model):
parent_name = models.CharField(default="", max_length=250)
via = models.CharField(default="", max_length=250)