diff options
author | Andrea Lepori <aleporia@gmail.com> | 2023-07-25 13:47:43 +0200 |
---|---|---|
committer | Andrea Lepori <aleporia@gmail.com> | 2023-07-25 13:47:44 +0200 |
commit | 05463489f459761e93b8921b5627626ee3adf420 (patch) | |
tree | 97349a3eaa45e260b82b26685966559f6413a0a0 /client/models.py | |
parent | change branca and color to show (diff) | |
download | scout-subs-05463489f459761e93b8921b5627626ee3adf420.tar.gz scout-subs-05463489f459761e93b8921b5627626ee3adf420.zip |
create docs from uc
Diffstat (limited to 'client/models.py')
-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 c39a5ea..c6cfdfd 100644 --- a/client/models.py +++ b/client/models.py @@ -97,8 +97,8 @@ class UserCode(models.Model): class Document(models.Model):
- usercode = models.ForeignKey(UserCode, default=None, on_delete=models.CASCADE, null=True)
- user = models.ForeignKey(User, default=None, on_delete=models.CASCADE)
+ usercode = models.ForeignKey(UserCode, default=None, on_delete=models.CASCADE)
+ user = models.ForeignKey(User, default=None, on_delete=models.CASCADE, null=True)
group = models.ForeignKey(Group, default=None, on_delete=models.CASCADE)
code = models.IntegerField(default=0)
compilation_date = models.DateTimeField(auto_now_add=True)
|