diff options
author | Andrea Lepori <aleporia@gmail.com> | 2023-07-25 12:14:12 +0200 |
---|---|---|
committer | Andrea Lepori <aleporia@gmail.com> | 2023-07-25 12:14:13 +0200 |
commit | da6654f57ef683c8c1f2f4c2eab52d907ba1925b (patch) | |
tree | 086273bf46a649b10349bfdda752c13571f3d6b1 /client/models.py | |
parent | clean up old settings menu (diff) | |
download | scout-subs-da6654f57ef683c8c1f2f4c2eab52d907ba1925b.tar.gz scout-subs-da6654f57ef683c8c1f2f4c2eab52d907ba1925b.zip |
change branca and color to show
Diffstat (limited to '')
-rw-r--r-- | client/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/models.py b/client/models.py index 1548893..c39a5ea 100644 --- a/client/models.py +++ b/client/models.py @@ -77,7 +77,7 @@ class UserCode(models.Model): user = models.ForeignKey(User, default=None, on_delete=models.CASCADE)
medic = models.ForeignKey(MedicalData, default=None, on_delete=models.PROTECT)
code = models.IntegerField(default=0)
- branca = models.ForeignKey(Group, default=1, on_delete=models.PROTECT)
+ branca = models.ForeignKey(Group, default=None, on_delete=models.PROTECT, null=True)
first_name = models.CharField(default="", max_length=250)
last_name = models.CharField(default="", max_length=250)
email = models.CharField(default="", max_length=250)
@@ -97,7 +97,7 @@ class UserCode(models.Model): class Document(models.Model):
- usercode = models.ForeignKey(UserCode, default=1, on_delete=models.CASCADE)
+ usercode = models.ForeignKey(UserCode, default=None, on_delete=models.CASCADE, null=True)
user = models.ForeignKey(User, default=None, on_delete=models.CASCADE)
group = models.ForeignKey(Group, default=None, on_delete=models.CASCADE)
code = models.IntegerField(default=0)
|