diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2022-09-26 19:36:27 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2022-09-26 19:36:27 +0200 |
commit | fce95cb32394b449bd6a17e766daf0cc6442db49 (patch) | |
tree | 5011464801d61b57017768ecbda123a900a123c2 /client/models.py | |
parent | switch tab on the profile based on missing fields (diff) | |
download | scout-subs-fce95cb32394b449bd6a17e766daf0cc6442db49.tar.gz scout-subs-fce95cb32394b449bd6a17e766daf0cc6442db49.zip |
create model to hide doctype from specific group
Diffstat (limited to '')
-rw-r--r-- | client/models.py | 5 |
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)
|